本文整理汇总了Python中WorldEditor.cloneChunkItems方法的典型用法代码示例。如果您正苦于以下问题:Python WorldEditor.cloneChunkItems方法的具体用法?Python WorldEditor.cloneChunkItems怎么用?Python WorldEditor.cloneChunkItems使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WorldEditor
的用法示例。
在下文中一共展示了WorldEditor.cloneChunkItems方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: set_clear
# 需要导入模块: import WorldEditor [as 别名]
# 或者: from WorldEditor import cloneChunkItems [as 别名]
set_clear( self.selection )
self.selUpdate()
#elif key == KEY_R and self.objInfo.shellMode and self.selection.size:
elif key == KEY_R and self.selection.size:
WorldEditor.recreateChunks( self.selection )
WorldEditor.addCommentaryMsg( "Recreated chunks" )
# clear the selection
set_clear( self.selection )
self.selUpdate()
# elif key == KEY_T:
# WorldEditor.recalcTerrainShadows()
# WorldEditor.addCommentaryMsg( "Recalced shadows" )
elif key == KEY_C:
if self.selection.size > 0:
WorldEditor.cloneChunkItems( self.selection, bd.itemTool.locator.subLocator )
WorldEditor.addCommentaryMsg( "Cloned Selection" )
else:
if key == KEY_LEFTMOUSE:
self.leftMouseDown = 0
return handled
# update entry point
def update( self, dTime, tool ):
if self.currentSpace_ != WorldEditor.getOptionString( "space/mru0" ):
self.currentSpace_ = WorldEditor.getOptionString( "space/mru0" )
set_clear( self.selection )
self.selUpdate()
if self.objInfo.overGizmo: