* m3: copy texture name, alignment +new: color, light power, color
	* alt + m3/drag: paste texture name (to pointed and selected stuff)
	* shift + m3/drag: paste texture name, alignment +new: light power
	* ctrl + m3/drag: paste texture seamlessly between brush faces +new: light color
	* ctrl + shift + m3/drag: project texture from copied brush face +new: paste light power, color
	* alt + ctrl/shift/ctrl+shift + m3/drag: respective texture alignment paste w/o texture name
fix void NormalizeColor( Vector3& color )
fix: reset texture clipboard texdef on selection in texbro (was only resetting scales)
This commit is contained in:
Garux
2018-08-11 23:36:50 +03:00
parent 7908a2b593
commit 3706e1131a
9 changed files with 296 additions and 123 deletions

View File

@@ -515,8 +515,10 @@ void NormalizeColor( Vector3& color ){
const std::size_t maxi = vector3_max_abs_component_index( color );
if ( color[maxi] == 0.f )
color = Vector3( 1, 1, 1 );
else
color /= color[maxi];
else{
const float max = color[maxi];
color /= max;
}
}
void Entity_normalizeColor(){