[Bf-blender-cvs] [49dee07e9c6] blender2.8: Cleanup: fix compiler warnings.

Brecht Van Lommel noreply at git.blender.org
Mon Sep 10 19:32:34 CEST 2018


Commit: 49dee07e9c6ab385152a7bb441c65d5488c97789
Author: Brecht Van Lommel
Date:   Mon Sep 10 16:12:11 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB49dee07e9c6ab385152a7bb441c65d5488c97789

Cleanup: fix compiler warnings.

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

M	source/blender/editors/uvedit/uvedit_ops.c

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

diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c
index bb4fbee1483..e57c4cc13f9 100644
--- a/source/blender/editors/uvedit/uvedit_ops.c
+++ b/source/blender/editors/uvedit/uvedit_ops.c
@@ -3799,7 +3799,7 @@ static int uv_snap_selection_exec(bContext *C, wmOperator *op)
 	ToolSettings *ts = scene->toolsettings;
 	const bool synced_selection = (ts->uv_flag & UV_SYNC_SELECTION) != 0;
 	const int target = RNA_enum_get(op->ptr, "target");
-	float offset[2];
+	float offset[2] = {0};
 
 	uint objects_len = 0;
 	Object **objects = BKE_view_layer_array_from_objects_in_edit_mode_unique_data_with_uvs(view_layer, &objects_len);



More information about the Bf-blender-cvs mailing list