mirror of
https://github.com/kaosat-dev/Blender_bevy_components_workflow.git
synced 2024-12-27 10:04:10 +00:00
d1b5d2627d
- replaced the various crates with a single one - replaced the Blender add-ons with a single one - this is an alpha release ! - for features etc see the various docs
19 lines
828 B
Python
19 lines
828 B
Python
class Blueprint:
|
|
def __init__(self, name):
|
|
self.name = name
|
|
self.local = True
|
|
self.marked = False # If marked as asset or with auto_export flag, always export if changed
|
|
self.scene = None # Not sure, could be usefull for tracking
|
|
|
|
self.instances = []
|
|
self.objects = []
|
|
self.nested_blueprints = []
|
|
|
|
self.collection = None # should we just sublclass ?
|
|
|
|
def __repr__(self):
|
|
return f'Name: {self.name} Local: {self.local}, Scene: {self.scene}, Instances: {self.instances}, Objects: {self.objects}, nested_blueprints: {self.nested_blueprints}'
|
|
|
|
def __str__(self):
|
|
return f'Name: "{self.name}", Local: {self.local}, Scene: {self.scene}, Instances: {self.instances}, Objects: {self.objects}, nested_blueprints: {self.nested_blueprints}'
|