[Bf-blender-cvs] [ae8976b596f] soc-2019-npr: Cleanup: Use zero_v4 to init the default value.

YimingWu noreply at git.blender.org
Sat Jul 6 17:48:46 CEST 2019


Commit: ae8976b596f7ce8b0fbfb12c4251b09ec3a96da0
Author: YimingWu
Date:   Sat Jul 6 23:47:00 2019 +0800
Branches: soc-2019-npr
https://developer.blender.org/rBae8976b596f7ce8b0fbfb12c4251b09ec3a96da0

Cleanup: Use zero_v4 to init the default value.

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

M	source/blender/blenloader/intern/versioning_280.c

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

diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c
index 177da8ee5df..3d1abcc0ed2 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -3534,10 +3534,7 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
       sce->lanpr.background_color[2] = 0.75;
       sce->lanpr.background_color[3] = 1;
 
-      sce->lanpr.line_color[0] = 0;
-      sce->lanpr.line_color[1] = 0;
-      sce->lanpr.line_color[2] = 0;
-      sce->lanpr.line_color[3] = 0;
+      zero_v4(sce->lanpr.line_color);
 
       sce->lanpr.enable_intersections = 1;
       sce->lanpr.enable_chaining = 1;



More information about the Bf-blender-cvs mailing list