RCG: better locator sizes

This commit is contained in:
brothermechanic 2024-04-15 22:17:37 +03:00
parent a58dcdafb1
commit e396b0c01e
No known key found for this signature in database
GPG key ID: 9C59EF9503ACD106

View file

@ -71,7 +71,7 @@ def assembly_builder(item, libs_data, libs_data_dir, collection=None, parent=Non
if item['type'] == 'LOCATOR': if item['type'] == 'LOCATOR':
item_obj = bpy.data.objects.new(item['name'], None) item_obj = bpy.data.objects.new(item['name'], None)
item_obj.empty_display_type = 'CUBE' item_obj.empty_display_type = 'CUBE'
item_obj.empty_display_size = 0.01 item_obj.empty_display_size = 0.0005
collection.objects.link(item_obj) collection.objects.link(item_obj)
elif item['type'] == 'LCS': elif item['type'] == 'LCS':
@ -117,7 +117,7 @@ def assembly_builder(item, libs_data, libs_data_dir, collection=None, parent=Non
if local_obj: if local_obj:
local_obj[0].name = item['base_name'] local_obj[0].name = item['base_name']
item_obj.empty_display_type = 'PLAIN_AXES' item_obj.empty_display_type = 'PLAIN_AXES'
item_obj.empty_display_size = 0.01 item_obj.empty_display_size = 0.0005
else: else:
logger.error('Unknown object type %s of %s', item['type'], item['name']) logger.error('Unknown object type %s of %s', item['type'], item['name'])