Sfoglia il codice sorgente

Fixed handle rendering

Marko Pintera 11 anni fa
parent
commit
486c2e9a0b

+ 0 - 2
BansheeCore/Source/BsRenderer.cpp

@@ -131,8 +131,6 @@ namespace BansheeEngine
 		IndexBufferPtr indexBuffer = mesh->_getIndexBuffer();
 
 		UINT32 indexCount = subMesh.indexCount;
-		if (indexCount == 0)
-			indexCount = indexBuffer->getNumIndices();
 
 		rs.setIndexBuffer(indexBuffer);
 		rs.drawIndexed(subMesh.indexOffset + mesh->_getIndexOffset(), indexCount, mesh->_getVertexOffset(), vertexData->vertexCount);

+ 1 - 1
BansheeEditor/Source/BsHandleDrawManager.cpp

@@ -29,7 +29,7 @@ namespace BansheeEngine
 
 		mCore = bs_new<HandleDrawManagerCore>(HandleDrawManagerCore::PrivatelyConstruct());
 
-		gCoreAccessor().queueCommand(std::bind(&HandleDrawManager::initializeCore, this, solidMaterialProxy, wireMaterialProxy));
+		gCoreAccessor().queueCommand(std::bind(&HandleDrawManager::initializeCore, this, wireMaterialProxy, solidMaterialProxy));
 	}
 
 	HandleDrawManager::~HandleDrawManager()

+ 0 - 3
SceneView.txt

@@ -7,11 +7,8 @@
 REFACTOR material getParams* and related classes. Those params should update all gpu program params that share that variable, not just the first found
 Add a way to render GUI image without alpha
 Cannot pick gizmo icon
-Cone handle doesn't render properly
 Line slider collider intersection doesn't work properly
 Handles need to render in front of everything
-When handle is shown this extra line appears out of nowhere, even if I don't draw handles
-Line color doesn't show when rendering handles, it's always black
 
 Test gizmos
  - HOOK UP GIZMO SELECTION and test it