Minor fix

This commit is contained in:
Dion Moult
2020-05-11 17:55:26 +10:00
parent 42f325295e
commit df62643fc7
2 changed files with 2 additions and 2 deletions
@@ -1728,7 +1728,7 @@ class ActivateView(bpy.types.Operator):
bl_label = 'Activate View'
def execute(self, context):
camera = bpy.data.objects.get(bpy.context.scene.DocProperties.available_views)
camera = bpy.data.objects.get('IfcGroup/' + bpy.context.scene.DocProperties.available_views)
if not camera:
return {'FINISHED'}
bpy.context.scene.camera = camera
+1 -1
View File
@@ -353,7 +353,7 @@ def getViews(self, context):
for collection in views_collection.children:
for obj in collection.objects:
if obj.type == 'CAMERA':
views_enum.append((obj.name, obj.name, ''))
views_enum.append((obj.name.split('/')[1], obj.name.split('/')[1], ''))
return views_enum