UI: hide object instancing panel for object types that dont support instancing
Basically, only meshes, empties and pointclouds support direct instancing atm., no need to have the panel for other types. note: prior to rB2eca054e14b1, collection instancing was possible on all types (but that was removed in said commit) note2: for empties, rna_Object_instance_type_itemf should also be tweaked so we dont get "Vertices" and "Faces" options, but that can be done in a separate commit Maniphest Tasks: T88443 Differential Revision: https://developer.blender.org/D11348
This commit is contained in:
parent
e38de11f05
commit
4599748962
Notes:
blender-bot
2023-02-14 07:30:31 +01:00
Referenced by commit f8ead736a0
, Fix FONT objects cannot use Object Font anymore
Referenced by issue #88443, Lattice still shows edges with "Bounds" display type.
|
@ -262,6 +262,11 @@ class OBJECT_PT_instancing(ObjectButtonsPanel, Panel):
|
|||
bl_label = "Instancing"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
ob = context.object
|
||||
return (ob.type in {'MESH', 'EMPTY', 'POINTCLOUD'})
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
|
|
Loading…
Reference in New Issue