mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
Add other entities as empties.
For now until I get entity class data importing sorted out. The empties are set to display as size 8 cubes (+/-8bu).
This commit is contained in:
parent
4b5242104a
commit
ffcd78bc28
1 changed files with 8 additions and 1 deletions
|
@ -68,7 +68,14 @@ def process_entity(ent):
|
|||
bpy.context.scene.objects.active=obj
|
||||
obj.select = True
|
||||
else:
|
||||
pass
|
||||
obj = bpy.data.objects.new(name, None)
|
||||
obj.empty_draw_type = 'CUBE'
|
||||
obj.empty_draw_size = 8
|
||||
obj.show_name = True
|
||||
obj.location = parse_vector (ent.d["origin"])
|
||||
bpy.context.scene.objects.link(obj)
|
||||
bpy.context.scene.objects.active=obj
|
||||
obj.select = True
|
||||
|
||||
def import_map(operator, context, filepath):
|
||||
bpy.context.user_preferences.edit.use_global_undo = False
|
||||
|
|
Loading…
Reference in a new issue