[Bf-blender-cvs] [6bdabf33f40] usd-importer-T81257-merge: USD Import: fixed conditional statement.

makowalski noreply at git.blender.org
Fri Apr 9 03:27:23 CEST 2021


Commit: 6bdabf33f40542834622b86d4e750ecb3e906fd3
Author: makowalski
Date:   Thu Apr 8 17:08:20 2021 -0400
Branches: usd-importer-T81257-merge
https://developer.blender.org/rB6bdabf33f40542834622b86d4e750ecb3e906fd3

USD Import: fixed conditional statement.

===================================================================

M	source/blender/io/usd/intern/usd_reader_light.cc

===================================================================

diff --git a/source/blender/io/usd/intern/usd_reader_light.cc b/source/blender/io/usd/intern/usd_reader_light.cc
index 72ca116386a..878d1a3dc2d 100644
--- a/source/blender/io/usd/intern/usd_reader_light.cc
+++ b/source/blender/io/usd/intern/usd_reader_light.cc
@@ -136,8 +136,7 @@ void USDLightReader::read_object_data(Main *bmain, double motionSampleTime)
         blight->area_size = width.Get<float>();
         blight->area_sizey = height.Get<float>();
       }
-
-      if (blight->area_shape == LA_AREA_DISK && prim_.IsA<pxr::UsdLuxDiskLight>()) {
+      else if (blight->area_shape == LA_AREA_DISK && prim_.IsA<pxr::UsdLuxDiskLight>()) {
 
         pxr::UsdLuxDiskLight disk_light(prim_);



More information about the Bf-blender-cvs mailing list