Cleanup: style/spelling
This commit is contained in:
@@ -3216,8 +3216,8 @@ void BKE_mesh_polygon_flip(MPoly *mpoly, MLoop *mloop, CustomData *ldata)
|
|||||||
|
|
||||||
/* Note that we keep same start vertex for flipped face. */
|
/* Note that we keep same start vertex for flipped face. */
|
||||||
|
|
||||||
/* We also have to update loops' edge
|
/* We also have to update loops edge
|
||||||
* (they ell get ther original 'other edge', that is, the original edge of their original previous loop)... */
|
* (they will get their original 'other edge', that is, the original edge of their original previous loop)... */
|
||||||
unsigned int prev_edge_index = mloop[loopstart].e;
|
unsigned int prev_edge_index = mloop[loopstart].e;
|
||||||
mloop[loopstart].e = mloop[loopend].e;
|
mloop[loopstart].e = mloop[loopend].e;
|
||||||
|
|
||||||
|
|||||||
@@ -1441,7 +1441,7 @@ bool BLI_gset_haskey(GSet *gs, const void *key)
|
|||||||
*
|
*
|
||||||
* \param r_key: The removed key.
|
* \param r_key: The removed key.
|
||||||
* \param state: Used for efficient removal.
|
* \param state: Used for efficient removal.
|
||||||
* \return true if there was somethjing to pop, false if gset was already empty.
|
* \return true if there was something to pop, false if gset was already empty.
|
||||||
*/
|
*/
|
||||||
bool BLI_gset_pop(
|
bool BLI_gset_pop(
|
||||||
GSet *gs, GSetIterState *state,
|
GSet *gs, GSetIterState *state,
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ static void bm_loop_customdata_merge(
|
|||||||
l_b_inner_inset = BM_edge_other_loop(e_b, l_b_inner);
|
l_b_inner_inset = BM_edge_other_loop(e_b, l_b_inner);
|
||||||
BLI_assert(l_a_inner_inset->v == l_b_inner_inset->v);
|
BLI_assert(l_a_inner_inset->v == l_b_inner_inset->v);
|
||||||
|
|
||||||
/* check if ther is no chance of diversion */
|
/* check if there is no chance of diversion */
|
||||||
if (l_a_inner_inset->f == l_b_inner_inset->f) {
|
if (l_a_inner_inset->f == l_b_inner_inset->f) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -457,21 +457,21 @@ static void rna_def_lamp_falloff(StructRNA *srna)
|
|||||||
RNA_def_property_float_sdna(prop, NULL, "coeff_const");
|
RNA_def_property_float_sdna(prop, NULL, "coeff_const");
|
||||||
RNA_def_property_range(prop, 0.0f, FLT_MAX);
|
RNA_def_property_range(prop, 0.0f, FLT_MAX);
|
||||||
RNA_def_property_ui_text(prop, "Constant Coefficient",
|
RNA_def_property_ui_text(prop, "Constant Coefficient",
|
||||||
"Constant distance attenuation coefficient");
|
"Constant distance attenuation coefficient");
|
||||||
RNA_def_property_update(prop, 0, "rna_Lamp_draw_update");
|
RNA_def_property_update(prop, 0, "rna_Lamp_draw_update");
|
||||||
|
|
||||||
prop = RNA_def_property(srna, "linear_coefficient", PROP_FLOAT, PROP_NONE);
|
prop = RNA_def_property(srna, "linear_coefficient", PROP_FLOAT, PROP_NONE);
|
||||||
RNA_def_property_float_sdna(prop, NULL, "coeff_lin");
|
RNA_def_property_float_sdna(prop, NULL, "coeff_lin");
|
||||||
RNA_def_property_range(prop, 0.0f, FLT_MAX);
|
RNA_def_property_range(prop, 0.0f, FLT_MAX);
|
||||||
RNA_def_property_ui_text(prop, "Linear Coefficient",
|
RNA_def_property_ui_text(prop, "Linear Coefficient",
|
||||||
"Linear distance attenuation coefficient");
|
"Linear distance attenuation coefficient");
|
||||||
RNA_def_property_update(prop, 0, "rna_Lamp_draw_update");
|
RNA_def_property_update(prop, 0, "rna_Lamp_draw_update");
|
||||||
|
|
||||||
prop = RNA_def_property(srna, "quadratic_coefficient", PROP_FLOAT, PROP_NONE);
|
prop = RNA_def_property(srna, "quadratic_coefficient", PROP_FLOAT, PROP_NONE);
|
||||||
RNA_def_property_float_sdna(prop, NULL, "coeff_quad");
|
RNA_def_property_float_sdna(prop, NULL, "coeff_quad");
|
||||||
RNA_def_property_range(prop, 0.0f, FLT_MAX);
|
RNA_def_property_range(prop, 0.0f, FLT_MAX);
|
||||||
RNA_def_property_ui_text(prop, "Quadratic Coefficient",
|
RNA_def_property_ui_text(prop, "Quadratic Coefficient",
|
||||||
"Quadratic distance attenuation coefficient");
|
"Quadratic distance attenuation coefficient");
|
||||||
RNA_def_property_update(prop, 0, "rna_Lamp_draw_update");
|
RNA_def_property_update(prop, 0, "rna_Lamp_draw_update");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3191,8 +3191,8 @@ void do_sky_tex(
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case TEXCO_EQUIRECTMAP:
|
case TEXCO_EQUIRECTMAP:
|
||||||
tempvec[0]= -atan2f(lo[2], lo[0]) / M_PI;
|
tempvec[0]= -atan2f(lo[2], lo[0]) / (float)M_PI;
|
||||||
tempvec[1]= atan2f(lo[1], hypot(lo[0], lo[2])) / M_PI_2;
|
tempvec[1]= atan2f(lo[1], hypot(lo[0], lo[2])) / (float)M_PI_2;
|
||||||
tempvec[2]= 0.0f;
|
tempvec[2]= 0.0f;
|
||||||
co= tempvec;
|
co= tempvec;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user