*/}}
Browse Source

Root object change

YimingWu 8 months ago
parent
commit
2d842a6df5
2 changed files with 3 additions and 3 deletions
  1. 1 1
      fruits.c
  2. 2 2
      modelling_main.c

+ 1 - 1
fruits.c

@@ -303,7 +303,7 @@ int RegisterEverything(){
     
     laSaveProp("basket");
 
-    tnsObject* s=tnsCreateRootObject("My Root");
+    tnsObject* s=tnsCreateRootObject("My Root", 0);
     tnsObject* o=tnsCreateLight(s,"Sun",100,100,100,1,1);
     tnsVector3d target={0,0,0}, up={0,0,1};
     tnsLookAt(o,target,up);

+ 2 - 2
modelling_main.c

@@ -31,7 +31,7 @@ void DataPanel(laUiList *uil, laPropPack *This, laPropPack *DetachedProps, laCol
 int RegisterEverything(){
     laRegisterUiTemplate("panel_data", "Data", DataPanel, 0, 0,0, 0,0,20);
 
-    tnsObject* s=tnsCreateRootObject("My Root");
+    tnsObject* s=tnsCreateRootObject("My Root",0);
     tnsObject* o=tnsCreateLight(s,"Sun",10,10,10,1,1);
     tnsVector3d target={0,0,0}, up={0,0,1};
     tnsLookAt(o,target,up);
@@ -42,7 +42,7 @@ int RegisterEverything(){
 
     //tnsCreateMeshPlane(s,"Plane", 0,0,10, 10);
 
-    s=tnsCreateRootObject("My Root 0");
+    s=tnsCreateRootObject("My Root 0", 0);
     mo=tnsCreateMeshPlane(s,"Plane", 0,0,0, 1);
 }