@@ -60,21 +60,31 @@ def draw_bogie_panel(self, context, layout):
6060
6161 vehicle_properties = context .object .loco_graphics_helper_vehicle_properties
6262
63+ row .prop (vehicle_properties , "null_component" )
64+ row = layout .row ()
65+
66+ if vehicle_properties .null_component :
67+ return
68+
69+ row .prop (vehicle_properties , "index" )
70+ row = layout .row ()
71+
6372 row .prop (vehicle_properties , "is_clone" )
6473 row = layout .row ()
6574
6675 row .prop (vehicle_properties , "is_inverted" )
6776 row = layout .row ()
6877
6978 if vehicle_properties .is_clone :
70- row .prop (vehicle_properties , "index" ,text = "Clone of bogie index:" )
71- row = layout .row ()
7279 return
7380
81+ row .prop (vehicle_properties , "render_sprite" )
82+ row = layout .row ()
83+
7484 box = layout .box ()
7585
7686 row = box .row ()
77- row .label ("Track Properties :" )
87+ row .label ("Sprite :" )
7888
7989 split = box .split (.50 )
8090 columns = [split .column (), split .column ()]
@@ -92,15 +102,14 @@ def draw_bogie_panel(self, context, layout):
92102 row .label ("Sloped Viewing Angles: 32" )
93103 row = layout .row ()
94104
95- row .prop (vehicle_properties , "index" )
96- row = layout .row ()
97-
98105 row .prop (vehicle_properties , "number_of_animation_frames" )
99106 row = layout .row ()
100107
101108 row .prop (vehicle_properties , "rotational_symmetry" )
102109 row = layout .row ()
103110
111+ row .prop (vehicle_properties , "bounding_box_override" )
112+
104113 def draw_body_panel (self , context , layout ):
105114 scene = context .scene
106115 general_properties = scene .loco_graphics_helper_general_properties
@@ -112,21 +121,31 @@ def draw_body_panel(self, context, layout):
112121
113122 vehicle_properties = context .object .loco_graphics_helper_vehicle_properties
114123
124+ row .prop (vehicle_properties , "null_component" )
125+ row = layout .row ()
126+
127+ if vehicle_properties .null_component :
128+ return
129+
130+ row .prop (vehicle_properties , "index" )
131+ row = layout .row ()
132+
115133 row .prop (vehicle_properties , "is_clone" )
116134 row = layout .row ()
117135
118136 row .prop (vehicle_properties , "is_inverted" )
119137 row = layout .row ()
120138
121139 if vehicle_properties .is_clone :
122- row .prop (vehicle_properties , "index" ,text = "Clone of body index:" )
123- row = layout .row ()
124140 return
125-
141+
142+ row .prop (vehicle_properties , "render_sprite" )
143+ row = layout .row ()
144+
126145 box = layout .box ()
127146
128147 row = box .row ()
129- row .label ("Track Properties :" )
148+ row .label ("Sprites :" )
130149
131150 split = box .split (.50 )
132151 columns = [split .column (), split .column ()]
@@ -148,17 +167,14 @@ def draw_body_panel(self, context, layout):
148167 row .prop (vehicle_properties , "sloped_viewing_angles" , text = "" )
149168 row = layout .row ()
150169
151- row .prop (vehicle_properties , "roll_angle" )
152- row = layout .row ()
153-
154- row .prop (vehicle_properties , "index" )
170+ row .prop (vehicle_properties , "tilt_angle" )
155171 row = layout .row ()
156172
157173 row .prop (vehicle_properties , "number_of_animation_frames" )
158174 row = layout .row ()
159175
160- if vehicle_properties .number_of_animation_frames != 1 and vehicle_properties .roll_angle != 0 :
161- row .label ("WARNING CANNOT HAVE BOTH ANIMATION FRAMES AND ROLL ANGLE SET " )
176+ if vehicle_properties .number_of_animation_frames != 1 and vehicle_properties .tilt_angle != 0 :
177+ row .label ("WARNING: cannot have tilt frames and animation frames " )
162178 row = layout .row ()
163179
164180 row .prop (vehicle_properties , "rotational_symmetry" )
@@ -167,8 +183,10 @@ def draw_body_panel(self, context, layout):
167183 row .prop (vehicle_properties , "braking_lights" )
168184 row = layout .row ()
169185 if vehicle_properties .braking_lights and vehicle_properties .roll_angle != 0 :
170- row .label ("WARNING CANNOT HAVE BOTH BRAKING LIGHTS AND ROLL ANGLE SET " )
186+ row .label ("WARNING: cannot have brake lights and tilt frames " )
171187 row = layout .row ()
172188
173189 row .prop (vehicle_properties , "is_airplane" )
174190 row = layout .row ()
191+
192+ row .prop (vehicle_properties , "bounding_box_override" )
0 commit comments