Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 279 vs 280 for /trunk/Source Code/Graphs/SceneNode.cpp

Diff revisions: vs.
  @@ -149,14 +149,16 @@
149 149
150 150 getMaterial()->UploadToShader(shaderInfo);
151 151 bool temp = sgn->isSelected();
152 - if(shaderInfo.getTrackedBool(0) != temp){
152 + if(sgn->getTrackedBool(0) != temp || shaderInfo.getTrackedBool(0) != temp){
153 153 shaderInfo.setTrackedBool(0, temp);
154 + sgn->setTrackedBool(0, temp);
154 155 _drawShader->Uniform("dvd_isSelected", temp);
155 156 }
156 157
157 158 temp = lightMgr.shadowMappingEnabled() && sgn->getReceivesShadows();
158 - if(shaderInfo.getTrackedBool(1) != temp){
159 + if(sgn->getTrackedBool(1) != temp || shaderInfo.getTrackedBool(1) != temp){
159 160 shaderInfo.setTrackedBool(1, temp);
161 + sgn->setTrackedBool(1, temp);
160 162 _drawShader->Uniform("dvd_enableShadowMapping", temp);
161 163 }
162 164
  @@ -165,8 +167,9 @@
165 167 if(temp){
166 168 _drawShader->Uniform("dvd_boneOffset", (I32)(sgn->getInstanceID() * animComponent->animationTransforms().size()));
167 169 }
168 - if(shaderInfo.getTrackedBool(2) != temp){
170 + if(sgn->getTrackedBool(2) != temp || shaderInfo.getTrackedBool(2) != temp){
169 171 shaderInfo.setTrackedBool(2, temp);
172 + sgn->setTrackedBool(2, temp);
170 173 _drawShader->Uniform("dvd_hasAnimations", temp);
171 174 }
172 175
  @@ -209,8 +212,9 @@
209 212 if(temp){
210 213 _drawShader->Uniform("dvd_boneOffset", (I32)(sgn->getInstanceID() * animComponent->animationTransforms().size()));
211 214 }
212 - if(shaderInfo.getTrackedBool(2) != temp){
215 + if(sgn->getTrackedBool(2) != temp || shaderInfo.getTrackedBool(2) != temp){
213 216 shaderInfo.setTrackedBool(2, temp);
217 + sgn->setTrackedBool(2, temp);
214 218 _drawShader->Uniform("dvd_hasAnimations", temp);
215 219 }
216 220 return true;