Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo de Greef <eeshlo@yahoo.com>2004-01-18 23:00:17 +0300
committerAlfredo de Greef <eeshlo@yahoo.com>2004-01-18 23:00:17 +0300
commit41144750da7d0dab39bc487fe086f627347fb16d (patch)
tree6295631518b642e4f502208689025aa1335e5be7 /source/blender/yafray/intern/yafray_Render.cpp
parent8139587af5100b05dded09a162607021b2c3dd7a (diff)
corrected particle object dupliverts and aramature duplivert export problems
corrected power slider increment update
Diffstat (limited to 'source/blender/yafray/intern/yafray_Render.cpp')
-rw-r--r--source/blender/yafray/intern/yafray_Render.cpp25
1 files changed, 6 insertions, 19 deletions
diff --git a/source/blender/yafray/intern/yafray_Render.cpp b/source/blender/yafray/intern/yafray_Render.cpp
index aa031126966..a8f6746f36e 100644
--- a/source/blender/yafray/intern/yafray_Render.cpp
+++ b/source/blender/yafray/intern/yafray_Render.cpp
@@ -33,7 +33,7 @@ bool yafrayRender_t::exportScene()
maxraydepth = 5; // will be set to maximum depth used in blender materials
// recreate the scene as object data, as well as sorting the material & textures, ignoring duplicates
- if (!getAllMatTexObs())
+ if (!getAllMatTexObs())
{
// error found, clear for next call
clearAll();
@@ -137,30 +137,22 @@ bool yafrayRender_t::getAllMatTexObs()
// in case dupliMtx_list not empty, make sure that there is at least one source object
// in all_objects with the name given in dupliMtx_list
- if (dupliMtx_list.size()!=0) {
+ if (!dupliMtx_list.empty()) {
for (map<Object*, vector<VlakRen*> >::const_iterator obn=all_objects.begin();
obn!=all_objects.end();++obn)
{
Object* obj = obn->first;
- if (obj->flag & OB_YAF_DUPLISOURCE) dup_srcob[string(obj->id.name)] = obj;
+ string obname = obj->id.name;
+ if (dupliMtx_list.find(obname)!=dupliMtx_list.end()) dup_srcob[obname] = obj;
}
// if the name reference list is empty, return now, something was seriously wrong
- if (dup_srcob.size()==0) {
+ if (dup_srcob.empty()) {
// error() doesn't work to well, when switching from Blender to console at least, so use stdout instead
cout << "ERROR: Duplilist non_empty, but no srcobs\n";
return false;
}
- // else make sure every object is found in dupliMtx_list
- for (map<string, Object*>::const_iterator obn2=dup_srcob.begin();
- obn2!=dup_srcob.end();++obn2)
- {
- if (dupliMtx_list.find(obn2->first)==dupliMtx_list.end()) {
- cout << "ERROR: Source ob missing for dupli's\n";
- return false;
- }
- }
}
return true;
@@ -180,12 +172,10 @@ bool yafrayRender_t::objectKnownData(Object* obj)
{
// if object data already known, no need to include in renderlist, otherwise save object datapointer
if (objectData.find(obj->data)!=objectData.end()) {
- // set OB_YAF_DUPLISOURCE flag for known object
Object* orgob = objectData[obj->data];
- orgob->flag |= OB_YAF_DUPLISOURCE;
// first save original object matrix in dupliMtx_list, if not added yet
if (dupliMtx_list.find(orgob->id.name)==dupliMtx_list.end()) {
- cout << "Added orignal matrix\n";
+ cout << "Added original matrix\n";
addDupliMtx(orgob);
}
// then save matrix of linked object in dupliMtx_list, using name of ORIGINAL object
@@ -198,6 +188,3 @@ bool yafrayRender_t::objectKnownData(Object* obj)
objectData[obj->data] = obj;
return false;
}
-
-
-