def rename_datablock(self, proxy: DatablockProxy, new_name: str, datablock: T.ID):
     """
     Rename a bpy.data collection item and update the proxy state (receiver side)
     """
     logger.info("rename_datablock proxy %s datablock %r into %s", proxy, datablock, new_name)
     datablock.name = new_name
     proxy._data["name"] = new_name
Exemplo n.º 2
0
 def rename_datablock(self, proxy: DatablockProxy, new_name: str,
                      datablock: T.ID):
     """
     Rename a bpy.data collection item and update the proxy state
     """
     logger.info("rename_datablock proxy %s datablock %s into %s", proxy,
                 datablock, new_name)
     proxy.rename(new_name)
     datablock.name = new_name