Cleanup: spelling in comments, format
This commit is contained in:
@@ -394,7 +394,7 @@ class OBJECT_PT_visibility(ObjectButtonsPanel, Panel):
|
||||
layout.separator()
|
||||
col = layout.column(heading="Ray Visibility")
|
||||
col.prop(ob, "visible_shadow", text="Shadow", toggle=False)
|
||||
|
||||
|
||||
if ob.type in {'MESH', 'CURVE', 'SURFACE', 'META', 'FONT', 'CURVES', 'POINTCLOUD', 'VOLUME', 'LIGHT'}:
|
||||
layout.separator()
|
||||
col = layout.column(heading="Light Probes")
|
||||
|
||||
@@ -788,12 +788,8 @@ bool isect_ray_line_v3(const float ray_origin[3],
|
||||
|
||||
/* Point in polygon. */
|
||||
|
||||
bool isect_point_poly_v2(const float pt[2],
|
||||
const float verts[][2],
|
||||
unsigned int nr);
|
||||
bool isect_point_poly_v2_int(const int pt[2],
|
||||
const int verts[][2],
|
||||
unsigned int nr);
|
||||
bool isect_point_poly_v2(const float pt[2], const float verts[][2], unsigned int nr);
|
||||
bool isect_point_poly_v2_int(const int pt[2], const int verts[][2], unsigned int nr);
|
||||
|
||||
/**
|
||||
* Point in quad - only convex quads.
|
||||
|
||||
@@ -1359,16 +1359,14 @@ int isect_line_sphere_v3(const float l1[3],
|
||||
float r_p1[3],
|
||||
float r_p2[3])
|
||||
{
|
||||
/* adapted for use in blender by Campbell Barton - 2011
|
||||
/* Adapted for use in blender by Campbell Barton, 2011.
|
||||
*
|
||||
* atelier iebele abel - 2001
|
||||
* <atelier@iebele.nl>
|
||||
* http://www.iebele.nl
|
||||
* `Atelier Iebele Abel <atelier@iebele.nl>` - 2001.
|
||||
*
|
||||
* sphere_line_intersection function adapted from:
|
||||
* http://astronomy.swin.edu.au/pbourke/geometry/sphereline
|
||||
* Paul Bourke <pbourke@swin.edu.au>
|
||||
*/
|
||||
* `Paul Bourke <pbourke@swin.edu.au>`. */
|
||||
|
||||
const float ldir[3] = {
|
||||
l2[0] - l1[0],
|
||||
|
||||
@@ -575,10 +575,10 @@ class ImageOperation : public NodeOperation {
|
||||
}
|
||||
}
|
||||
|
||||
/* Compositor image inputs are expected to be always premultiplied, so identify if the GPU
|
||||
* texture returned by the image module is straight and needs to be premultiplied. An exception
|
||||
/* Compositor image inputs are expected to be always pre-multiplied, so identify if the GPU
|
||||
* texture returned by the image module is straight and needs to be pre-multiplied. An exception
|
||||
* is when the image has an alpha mode of channel packed or alpha ignore, in which case, we
|
||||
* always ignore premultiplication. */
|
||||
* always ignore pre-multiplication. */
|
||||
bool should_premultiply_alpha(ImageUser &image_user)
|
||||
{
|
||||
Image *image = get_image();
|
||||
|
||||
@@ -64,7 +64,7 @@ std::string NodeParser::node_name(bool with_out_socket) const
|
||||
{
|
||||
auto valid_name = [](const std::string &name) {
|
||||
/* Node name should suite to MatX and USD valid names.
|
||||
* It shouldn't start from '_', due to error occured in Storm delegate. */
|
||||
* It shouldn't start from '_', due to error occurred in Storm delegate. */
|
||||
std::string res = MaterialX::createValidName(pxr::TfMakeValidIdentifier(name));
|
||||
if (res[0] == '_') {
|
||||
res = "node" + res;
|
||||
|
||||
Reference in New Issue
Block a user