mirror of
https://github.com/kaosat-dev/Blender_bevy_components_workflow.git
synced 2024-11-22 11:50:53 +00:00
d0bc05fb96
* added correct injection of assets + export path to blueprints * moved a few common elements to "core" for better reuse * more tweaks/ experiments with paths handling * moved & overhauled a few of the blueprint & assets tools * lots of minor tweaks & changes
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}'
|