- extract MaterialHelper and move all of its members to aiMaterial in /include.
- pull in IOhannes' patch to set the gcc default visibility for all symbols to NO and to mark ASSIMP_API with __attribute__ ((visibility("default"))).
- drop unneeded ASSIMP_API from most internal classes in /code, we just need to keep some exports on Windows to keep AssimpView alive.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1066 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -64,7 +64,7 @@ void ScenePreprocessor::ProcessScene ()
|
||||
// Generate a default material if none was specified
|
||||
if (!scene->mNumMaterials && scene->mNumMeshes) {
|
||||
scene->mMaterials = new aiMaterial*[2];
|
||||
MaterialHelper* helper;
|
||||
aiMaterial* helper;
|
||||
|
||||
aiString name;
|
||||
|
||||
@@ -76,7 +76,7 @@ void ScenePreprocessor::ProcessScene ()
|
||||
|
||||
if (mat0 == UINT_MAX) {
|
||||
|
||||
scene->mMaterials[scene->mNumMaterials] = helper = new MaterialHelper();
|
||||
scene->mMaterials[scene->mNumMaterials] = helper = new aiMaterial();
|
||||
name.Set("$texture.png");
|
||||
helper->AddProperty(&name,AI_MATKEY_TEXTURE_DIFFUSE(0));
|
||||
|
||||
@@ -91,7 +91,7 @@ void ScenePreprocessor::ProcessScene ()
|
||||
else {
|
||||
if (mat1 == UINT_MAX) {
|
||||
|
||||
scene->mMaterials[scene->mNumMaterials] = helper = new MaterialHelper();
|
||||
scene->mMaterials[scene->mNumMaterials] = helper = new aiMaterial();
|
||||
aiColor3D clr(0.6f,0.6f,0.6f);
|
||||
helper->AddProperty(&clr,1,AI_MATKEY_COLOR_DIFFUSE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user