*/}}
فهرست منبع

Use integrated scene panel

YimingWu 1 سال پیش
والد
کامیت
f269aa1d43
1فایلهای تغییر یافته به همراه1 افزوده شده و 10 حذف شده
  1. 1 10
      modelling_main.c

+ 1 - 10
modelling_main.c

@@ -20,14 +20,6 @@
 
 extern LA MAIN;
 
-void la_DetachedScenePanel(laPanel* p){
-    la_MakeDetachedProp(p, "la.detached_view_switch", "detached");
-    la_MakeDetachedProp(p, "tns.world.root_objects", "root_object");
-}
-void ScenePanel(laUiList *uil, laPropPack *This, laPropPack *DetachedProps, laColumn *UNUSED, int context){
-    laColumn* c=laFirstColumn(uil); 
-    laShow3DCanvasCombo(uil,c,DetachedProps,"root_object",-1,DetachedProps);
-}
 void DataPanel(laUiList *uil, laPropPack *This, laPropPack *DetachedProps, laColumn *UNUSED, int context){
     laColumn* c=laFirstColumn(uil);
     
@@ -37,7 +29,6 @@ void DataPanel(laUiList *uil, laPropPack *This, laPropPack *DetachedProps, laCol
 }
 
 int RegisterEverything(){
-    laRegisterUiTemplate("panel_scene", "Scene", ScenePanel, la_DetachedScenePanel, 0,0, 0,25,25);
     laRegisterUiTemplate("panel_data", "Data", DataPanel, 0, 0,0, 0,0,20);
 
     tnsObject* s=tnsCreateRootObject("My Root");
@@ -79,7 +70,7 @@ int main(int argc, char *argv[]){
     laCreatePanel(b->B2, "LAUI_animation_actions");
 
     laSplitBlockVertical(b->B1,0.6);
-    laCreatePanel(b->B1->B1, "panel_scene");
+    laCreatePanel(b->B1->B1, "LAUI_scene");
     laCreatePanel(b->B1->B2, "LAUI_animation_action_channels");
 
     laStartWindow(w);