refactor: move rm to porcelain
This commit is contained in:
parent
211d0848c2
commit
4c4cf8a970
@ -1 +1 @@
|
|||||||
Subproject commit 02b5bbbd78bc784a50e811a3b4ded75700eed03e
|
Subproject commit b3123e51429c2db1fff710dd06aefdff4ee6abd1
|
@ -401,7 +401,7 @@ class SessionPropertyRemoveOperator(bpy.types.Operator):
|
|||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
try:
|
try:
|
||||||
session.remove(self.property_path)
|
porcelain.rm(session.repository, self.property_path)
|
||||||
|
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
except: # NonAuthorizedOperationError:
|
except: # NonAuthorizedOperationError:
|
||||||
@ -907,7 +907,9 @@ def sanitize_deps_graph(remove_nodes: bool = False):
|
|||||||
or (node.state == UP and not node.instance):
|
or (node.state == UP and not node.instance):
|
||||||
if remove_nodes:
|
if remove_nodes:
|
||||||
try:
|
try:
|
||||||
session.remove(node.uuid, remove_dependencies=False)
|
porcelain.rm(session.repository,
|
||||||
|
node.uuid,
|
||||||
|
remove_dependencies=False)
|
||||||
logging.info(f"Removing {node.uuid}")
|
logging.info(f"Removing {node.uuid}")
|
||||||
rm_cpt += 1
|
rm_cpt += 1
|
||||||
except NonAuthorizedOperationError:
|
except NonAuthorizedOperationError:
|
||||||
@ -968,8 +970,6 @@ def depsgraph_evaluation(scene):
|
|||||||
porcelain.push(session.repository, 'origin', node.uuid)
|
porcelain.push(session.repository, 'origin', node.uuid)
|
||||||
except ReferenceError:
|
except ReferenceError:
|
||||||
logging.debug(f"Reference error {node.uuid}")
|
logging.debug(f"Reference error {node.uuid}")
|
||||||
# if not node.is_valid():
|
|
||||||
# session.remove(node.uuid)
|
|
||||||
except ContextError as e:
|
except ContextError as e:
|
||||||
logging.debug(e)
|
logging.debug(e)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user