History

hook up can-rez-tmp and can-write-to-asset-server

Seth Alves committed 10 years ago

Commit b2f63a21 parent 3bfcc8611 files · +74 −26Browse files

Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 11 files). Show all

Unified · Split

libraries/entities/src/EntityScriptingInterface.cpp+6−0
@@ -32,6 +32,7 @@ EntityScriptingInterface::EntityScriptingInterface(bool bidOnSimulationOwnership · 31 unmodified lines
3232 auto nodeList = DependencyManager::get<NodeList>();
3333 connect(nodeList.data(), &NodeList::isAllowedEditorChanged, this, &EntityScriptingInterface::canAdjustLocksChanged);
3434 connect(nodeList.data(), &NodeList::canRezChanged, this, &EntityScriptingInterface::canRezChanged);
35+ connect(nodeList.data(), &NodeList::canRezTmpChanged, this, &EntityScriptingInterface::canRezTmpChanged);
3536 }
3637
3738 void EntityScriptingInterface::queueEntityMessage(PacketType packetType,
@@ -49,6 +50,11 @@ bool EntityScriptingInterface::canRez() { · 11 unmodified lines
4950 return nodeList->getThisNodeCanRez();
5051 }
5152
53+bool EntityScriptingInterface::canRezTmp() {
54+ auto nodeList = DependencyManager::get<NodeList>();
55+ return nodeList->getThisNodeCanRezTmp();
56+}
57+
5258 void EntityScriptingInterface::setEntityTree(EntityTreePointer elementTree) {
5359 if (_entityTree) {
5460 disconnect(_entityTree.get(), &EntityTree::addingEntity, this, &EntityScriptingInterface::addingEntity);