diff options
author | Jacques Lucke <jacques@blender.org> | 2022-03-08 12:36:46 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-03-08 12:36:46 +0300 |
commit | 94d2470c416f70f7b0a357b1c3f3fc80d3e7360b (patch) | |
tree | 8fbcbf51ea56edfb9239194c7cb61dd975ef18b9 /source/blender/draw/intern/draw_cache_impl_curves.cc | |
parent | 4b598739c5c18c83048646e27e91f1f0bf53acc6 (diff) |
Curves: increase default viewport resolution for curves object
This part has to be refactored soon anyway, because more types
curves have to be drawn for the new Curves object.
For now, 3 is a better default than 2, because that matches the
actual resolution of the curve currently.
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_curves.cc')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_curves.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_curves.cc b/source/blender/draw/intern/draw_cache_impl_curves.cc index df1ac12605a..aea71d965d1 100644 --- a/source/blender/draw/intern/draw_cache_impl_curves.cc +++ b/source/blender/draw/intern/draw_cache_impl_curves.cc @@ -340,7 +340,7 @@ bool hair_ensure_procedural_data(Object *object, HairBatchCache *cache = curves_batch_cache_get(curves); *r_hair_cache = &cache->hair; - const int steps = 2; /* TODO: don't hard-code? */ + const int steps = 3; /* TODO: don't hard-code? */ (*r_hair_cache)->final[subdiv].strands_res = 1 << (steps + subdiv); /* Refreshed on combing and simulation. */ |