JoPmt commited on
Commit
a395706
·
verified ·
1 Parent(s): 669b4f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -42,10 +42,10 @@ def visualize_planets():
42
  if obj.type == 'MESH' and "mass" in obj:
43
  obj.select_set(True)
44
  for area in bpy.context.screen.areas:
45
- if area.type == 'VIEW_3D':
46
- override = bpy.context.copy()
47
- override['area'] = area
48
- bpy.ops.view3d.snap_cursor_to_selected(override)
49
  ##bpy.ops.view3d.snap_cursor_to_selected()
50
  ##bpy.ops.object.origin_set(type='ORIGIN_CURSOR')
51
  ##bpy.context.scene.cursor.location = (0, 0, 0)
 
42
  if obj.type == 'MESH' and "mass" in obj:
43
  obj.select_set(True)
44
  for area in bpy.context.screen.areas:
45
+ if area.type == 'VIEW_3D':
46
+ override = bpy.context.copy()
47
+ override['area'] = area
48
+ bpy.ops.view3d.snap_cursor_to_selected(override)
49
  ##bpy.ops.view3d.snap_cursor_to_selected()
50
  ##bpy.ops.object.origin_set(type='ORIGIN_CURSOR')
51
  ##bpy.context.scene.cursor.location = (0, 0, 0)