diff --git a/src/Core/Entities/PlanetEntity.h b/src/Core/Entities/PlanetEntity.h index 962e9be1..7e180d29 100644 --- a/src/Core/Entities/PlanetEntity.h +++ b/src/Core/Entities/PlanetEntity.h @@ -60,7 +60,7 @@ typedef struct int r_seed[MAX_VERTICES_PER_ENTITY]; GLuint displayListNames[MAX_SUBDIVIDE]; - BOOL isTextureImage; // is the texture a png image (as opposed to synthesized)? + BOOL isTextureImage; // is the texture explicitly specified (as opposed to synthesized)? NSString *_textureFileName; OOTexture *_texture; diff --git a/src/Core/Entities/PlanetEntity.m b/src/Core/Entities/PlanetEntity.m index 62da7e96..3130d6ea 100644 --- a/src/Core/Entities/PlanetEntity.m +++ b/src/Core/Entities/PlanetEntity.m @@ -205,6 +205,7 @@ static int baseVertexIndexForEdge(int va, int vb, BOOL textured); _texture = [self cloudTextureWithCloudColor:cloudColor cloudImpress:cloud_impress cloudBias:cloud_bias]; [_texture retain]; + isTextureImage = NO; setRandomSeed(saved_seed); RANROTSetFullSeed(ranrotSavedSeed); @@ -533,6 +534,7 @@ static int baseVertexIndexForEdge(int va, int vb, BOOL textured); if (procGen && _texture == nil) { _texture = [self planetTextureWithInfo:planetInfo]; + isTextureImage = NO; [_texture retain]; } #endif @@ -1460,6 +1462,8 @@ static int baseVertexIndexForEdge(int va, int vb, BOOL textured) [_textureFileName release]; _textureFileName = [[configuration oo_stringForKey:@"name"] copy]; + + isTextureImage = YES; }