Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_object.py
| Show First 20 Lines • Show All 360 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| mpath = ob.motion_path | mpath = ob.motion_path | ||||
| self.draw_settings(context, avs, mpath) | self.draw_settings(context, avs, mpath) | ||||
| class OBJECT_PT_visibility(ObjectButtonsPanel, Panel): | class OBJECT_PT_visibility(ObjectButtonsPanel, Panel): | ||||
| bl_label = "Visibility" | bl_label = "Visibility" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH','BLENDER_WORKBENCH_NEXT'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return (context.object) and (context.engine in cls.COMPAT_ENGINES) | return (context.object) and (context.engine in cls.COMPAT_ENGINES) | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| Show All 12 Lines | def draw(self, context): | ||||
| col.prop(ob, "use_grease_pencil_lights", toggle=False) | col.prop(ob, "use_grease_pencil_lights", toggle=False) | ||||
| layout.separator() | layout.separator() | ||||
| col = layout.column(heading="Mask") | col = layout.column(heading="Mask") | ||||
| col.prop(ob, "is_holdout") | col.prop(ob, "is_holdout") | ||||
| class OBJECT_PT_custom_props(ObjectButtonsPanel, PropertyPanel, Panel): | class OBJECT_PT_custom_props(ObjectButtonsPanel, PropertyPanel, Panel): | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH','BLENDER_WORKBENCH_NEXT'} | ||||
| _context_path = "object" | _context_path = "object" | ||||
| _property_type = bpy.types.Object | _property_type = bpy.types.Object | ||||
| classes = ( | classes = ( | ||||
| OBJECT_PT_context_object, | OBJECT_PT_context_object, | ||||
| OBJECT_PT_transform, | OBJECT_PT_transform, | ||||
| OBJECT_PT_delta_transform, | OBJECT_PT_delta_transform, | ||||
| Show All 17 Lines | |||||