mirror of
https://github.com/blender/blender-addons.git
synced 2025-08-13 13:34:34 +00:00
Fix export pc2 poll function
Assumed active object
This commit is contained in:
@ -153,7 +153,11 @@ class Export_pc2(bpy.types.Operator, ExportHelper):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return context.active_object.type in {'MESH', 'CURVE', 'SURFACE', 'FONT'}
|
obj = context.active_object
|
||||||
|
return (
|
||||||
|
obj is not None and
|
||||||
|
obj.type in {'MESH', 'CURVE', 'SURFACE', 'FONT'}
|
||||||
|
)
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
|
Reference in New Issue
Block a user