Fix T62208: constant detail picker not taking object scale into account

This commit is contained in:
Jacques Lucke
2019-03-05 16:44:37 +01:00
parent a4540116ba
commit 55cd481bf2

View File

@@ -6185,7 +6185,7 @@ static void sample_detail(bContext *C, int mx, int my)
if (srd.hit && srd.edge_length > 0.0f) {
/* Convert edge length to world space detail resolution. */
sd->constant_detail = mat4_to_scale(ob->obmat) / srd.edge_length;
sd->constant_detail = 1 / (srd.edge_length * mat4_to_scale(ob->obmat));
}
/* Restore context. */