[Bf-blender-cvs] [c2e26406c5b] master: Cleanup: use different hardcoded shape to make the root/tip radius useful
Jacques Lucke
noreply at git.blender.org
Mon May 9 18:37:56 CEST 2022
Commit: c2e26406c5b3e84eb5fdbb1105d6f6470d66763c
Author: Jacques Lucke
Date: Mon May 9 18:24:05 2022 +0200
Branches: master
https://developer.blender.org/rBc2e26406c5b3e84eb5fdbb1105d6f6470d66763c
Cleanup: use different hardcoded shape to make the root/tip radius useful
Those settings are intended to be removed at some point, but for now they
are still needed because the radius attribute isn't supported.
===================================================================
M source/blender/draw/intern/draw_curves.cc
===================================================================
diff --git a/source/blender/draw/intern/draw_curves.cc b/source/blender/draw/intern/draw_curves.cc
index 88118361115..2edf596ac63 100644
--- a/source/blender/draw/intern/draw_curves.cc
+++ b/source/blender/draw/intern/draw_curves.cc
@@ -209,7 +209,7 @@ DRWShadingGroup *DRW_shgroup_curves_create_sub(Object *object,
DRW_shgroup_uniform_texture(shgrp, "ac", g_dummy_texture);
/* TODO: Generalize radius implementation for curves data type. */
- float hair_rad_shape = 1.0f;
+ float hair_rad_shape = 0.0f;
float hair_rad_root = 0.005f;
float hair_rad_tip = 0.0f;
bool hair_close_tip = true;
More information about the Bf-blender-cvs
mailing list