generated from stilobique/BlenderTemplate
Update the outline operators.
Make a setup to generate the socket collection
This commit is contained in:
@@ -49,7 +49,25 @@ class Outline:
|
||||
'Game Object': Collection(name='Game Object', color='COLOR_05')
|
||||
}
|
||||
|
||||
self._socket = Collection(name='Socket', color='NONE')
|
||||
|
||||
@property
|
||||
def collections(self) -> [str]:
|
||||
"""Returns all collections in a dict"""
|
||||
return self._collections
|
||||
|
||||
@property
|
||||
def get_placeholder_collection(self):
|
||||
return bpy.data.collections.get(self.collections['Placeholder'].name)
|
||||
|
||||
@property
|
||||
def get_icon_collection(self):
|
||||
return bpy.data.collections.get(self.collections['Icon'].name)
|
||||
|
||||
@property
|
||||
def get_game_object_collection(self):
|
||||
return bpy.data.collections.get(self.collections['Game Object'].name)
|
||||
|
||||
@property
|
||||
def socket(self) -> Collection:
|
||||
return self._socket
|
||||
|
||||
Reference in New Issue
Block a user