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:
authorAlexander Ewering <blender@instinctive.de>2005-07-12 20:24:27 +0400
committerAlexander Ewering <blender@instinctive.de>2005-07-12 20:24:27 +0400
commit6f5b3b10c8c5b4cdca126d6ae55c8083b2e683dd (patch)
tree03a6b3d07547cb74eec6d160f6e3a520e7967614 /source/blender/radiosity
parentf6bd2ad3d0502f04524081e1d8e0a348e7ab6181 (diff)
Fix "Replace Meshes" in radiosity to actually only replace Meshes, and not
also delete lamps, cameras and anything else that was selected in the "Collect Meshes" phase.
Diffstat (limited to 'source/blender/radiosity')
-rw-r--r--source/blender/radiosity/intern/source/radpostprocess.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/radiosity/intern/source/radpostprocess.c b/source/blender/radiosity/intern/source/radpostprocess.c
index e0b42c6b775..0422a8f6c2c 100644
--- a/source/blender/radiosity/intern/source/radpostprocess.c
+++ b/source/blender/radiosity/intern/source/radpostprocess.c
@@ -1046,7 +1046,11 @@ void rad_replacemesh(void)
rp= RG.patchbase.first;
while(rp) {
- if( exist_object(rp->from)) rp->from->flag |= SELECT;
+ if( exist_object(rp->from)) {
+ if (rp->from->type == OB_MESH) {
+ rp->from->flag |= SELECT;
+ }
+ }
rp= rp->next;
}