forked from bartvdbraak/blender
Cleanup: style, spelling
This commit is contained in:
parent
499308d079
commit
72565fbf30
@ -698,19 +698,19 @@ int main(int /*argc*/, char ** /*argv*/)
|
|||||||
KEY_ALL_ACCESS);
|
KEY_ALL_ACCESS);
|
||||||
|
|
||||||
if (lresult == ERROR_SUCCESS)
|
if (lresult == ERROR_SUCCESS)
|
||||||
printf("Succesfully opened key\n");
|
printf("Successfully opened key\n");
|
||||||
#if 0
|
#if 0
|
||||||
lresult = regkey.QueryValue(&keyValue, "StereoEnable");
|
lresult = regkey.QueryValue(&keyValue, "StereoEnable");
|
||||||
if (lresult == ERROR_SUCCESS)
|
if (lresult == ERROR_SUCCESS)
|
||||||
printf("Succesfully queried key\n");
|
printf("Successfully queried key\n");
|
||||||
#endif
|
#endif
|
||||||
lresult = regkey.SetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\NVIDIA Corporation\\Global\\Stereo3D\\StereoEnable",
|
lresult = regkey.SetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\NVIDIA Corporation\\Global\\Stereo3D\\StereoEnable",
|
||||||
"1");
|
"1");
|
||||||
if (lresult == ERROR_SUCCESS)
|
if (lresult == ERROR_SUCCESS)
|
||||||
printf("Succesfully set value for key\n");
|
printf("Successfully set value for key\n");
|
||||||
regkey.Close();
|
regkey.Close();
|
||||||
if (lresult == ERROR_SUCCESS)
|
if (lresult == ERROR_SUCCESS)
|
||||||
printf("Succesfully closed key\n");
|
printf("Successfully closed key\n");
|
||||||
// regkey.Write("2");
|
// regkey.Write("2");
|
||||||
}
|
}
|
||||||
#endif // WIN32
|
#endif // WIN32
|
||||||
|
@ -275,7 +275,7 @@ static void do_versions_nodetree_multi_file_output_format_2_62_1(Scene *sce, bNo
|
|||||||
|
|
||||||
BLI_snprintf(sockpath, sizeof(sockpath), "%s_Image", filename);
|
BLI_snprintf(sockpath, sizeof(sockpath), "%s_Image", filename);
|
||||||
sock = ntreeCompositOutputFileAddSocket(ntree, node, sockpath, &nimf->format);
|
sock = ntreeCompositOutputFileAddSocket(ntree, node, sockpath, &nimf->format);
|
||||||
/* XXX later do_versions copies path from socket name, need to set this explicitely */
|
/* XXX later do_versions copies path from socket name, need to set this explicitly */
|
||||||
BLI_strncpy(sock->name, sockpath, sizeof(sock->name));
|
BLI_strncpy(sock->name, sockpath, sizeof(sock->name));
|
||||||
if (old_image->link) {
|
if (old_image->link) {
|
||||||
old_image->link->tosock = sock;
|
old_image->link->tosock = sock;
|
||||||
@ -284,7 +284,7 @@ static void do_versions_nodetree_multi_file_output_format_2_62_1(Scene *sce, bNo
|
|||||||
|
|
||||||
BLI_snprintf(sockpath, sizeof(sockpath), "%s_Z", filename);
|
BLI_snprintf(sockpath, sizeof(sockpath), "%s_Z", filename);
|
||||||
sock = ntreeCompositOutputFileAddSocket(ntree, node, sockpath, &nimf->format);
|
sock = ntreeCompositOutputFileAddSocket(ntree, node, sockpath, &nimf->format);
|
||||||
/* XXX later do_versions copies path from socket name, need to set this explicitely */
|
/* XXX later do_versions copies path from socket name, need to set this explicitly */
|
||||||
BLI_strncpy(sock->name, sockpath, sizeof(sock->name));
|
BLI_strncpy(sock->name, sockpath, sizeof(sock->name));
|
||||||
if (old_z->link) {
|
if (old_z->link) {
|
||||||
old_z->link->tosock = sock;
|
old_z->link->tosock = sock;
|
||||||
@ -293,7 +293,7 @@ static void do_versions_nodetree_multi_file_output_format_2_62_1(Scene *sce, bNo
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sock = ntreeCompositOutputFileAddSocket(ntree, node, filename, &nimf->format);
|
sock = ntreeCompositOutputFileAddSocket(ntree, node, filename, &nimf->format);
|
||||||
/* XXX later do_versions copies path from socket name, need to set this explicitely */
|
/* XXX later do_versions copies path from socket name, need to set this explicitly */
|
||||||
BLI_strncpy(sock->name, filename, sizeof(sock->name));
|
BLI_strncpy(sock->name, filename, sizeof(sock->name));
|
||||||
if (old_image->link) {
|
if (old_image->link) {
|
||||||
old_image->link->tosock = sock;
|
old_image->link->tosock = sock;
|
||||||
|
@ -975,7 +975,8 @@ static bool ui_but_event_operator_string(const bContext *C, uiBut *but, char *bu
|
|||||||
|
|
||||||
IDP_AssignString(prop_menu_name, mt->idname, sizeof(mt->idname));
|
IDP_AssignString(prop_menu_name, mt->idname, sizeof(mt->idname));
|
||||||
|
|
||||||
if (WM_key_event_operator_string(C, "WM_OT_call_menu", WM_OP_INVOKE_REGION_WIN, prop_menu, true, buf_len, buf))
|
if (WM_key_event_operator_string(C, "WM_OT_call_menu", WM_OP_INVOKE_REGION_WIN, prop_menu,
|
||||||
|
true, buf_len, buf))
|
||||||
{
|
{
|
||||||
found = true;
|
found = true;
|
||||||
}
|
}
|
||||||
|
@ -387,7 +387,7 @@ PyDoc_STRVAR(SVertex_curvatures_doc,
|
|||||||
"directions, i.e. the directions of the normal plane where the\n"
|
"directions, i.e. the directions of the normal plane where the\n"
|
||||||
"curvature takes its maximum and minimum values, respectively; and Kr,\n"
|
"curvature takes its maximum and minimum values, respectively; and Kr,\n"
|
||||||
"er and dKr are the radial curvature, radial direction, and the\n"
|
"er and dKr are the radial curvature, radial direction, and the\n"
|
||||||
"derivative of the radial curvature at this SVertex, repectively.\n"
|
"derivative of the radial curvature at this SVertex, respectively.\n"
|
||||||
"\n"
|
"\n"
|
||||||
":type: tuple");
|
":type: tuple");
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ static char GetDirectionalViewMapDensityF1D___doc__[] =
|
|||||||
"\n"
|
"\n"
|
||||||
" Returns the density evaluated for an Interface1D in of the steerable\n"
|
" Returns the density evaluated for an Interface1D in of the steerable\n"
|
||||||
" viewmaps image. The direction telling which Directional map to choose\n"
|
" viewmaps image. The direction telling which Directional map to choose\n"
|
||||||
" is explicitely specified by the user. The density is evaluated for a\n"
|
" is explicitly specified by the user. The density is evaluated for a\n"
|
||||||
" set of points along the Interface1D (using the\n"
|
" set of points along the Interface1D (using the\n"
|
||||||
" :class:`freestyle.functions.ReadSteerableViewMapPixelF0D` functor) and\n"
|
" :class:`freestyle.functions.ReadSteerableViewMapPixelF0D` functor) and\n"
|
||||||
" then integrated into a single value using a user-defined integration\n"
|
" then integrated into a single value using a user-defined integration\n"
|
||||||
|
@ -168,7 +168,7 @@ private:
|
|||||||
|
|
||||||
// GetDirectionalViewMapDensity
|
// GetDirectionalViewMapDensity
|
||||||
/*! Returns the density evaluated for an Interface1D in of the steerable viewmaps image.
|
/*! Returns the density evaluated for an Interface1D in of the steerable viewmaps image.
|
||||||
* The direction telling which Directional map to choose is explicitely specified by the user.
|
* The direction telling which Directional map to choose is explicitly specified by the user.
|
||||||
* The density is evaluated for a set of points along the Interface1D (using the ReadSteerableViewMapPixelF0D functor)
|
* The density is evaluated for a set of points along the Interface1D (using the ReadSteerableViewMapPixelF0D functor)
|
||||||
* and then integrated into a single value using a user-defined integration method.
|
* and then integrated into a single value using a user-defined integration method.
|
||||||
*/
|
*/
|
||||||
|
@ -46,7 +46,7 @@ public:
|
|||||||
virtual ~BaseObject() {}
|
virtual ~BaseObject() {}
|
||||||
|
|
||||||
/*! At least makes a release on this.
|
/*! At least makes a release on this.
|
||||||
* The BaseObject::destroy method must be explicitely called at the end of any overloaded destroy
|
* The BaseObject::destroy method must be explicitly called at the end of any overloaded destroy
|
||||||
*/
|
*/
|
||||||
virtual int destroy()
|
virtual int destroy()
|
||||||
{
|
{
|
||||||
|
@ -2696,7 +2696,7 @@ static PyObject *BPy_EnumProperty(PyObject *self, PyObject *args, PyObject *kw)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (def == Py_None) {
|
if (def == Py_None) {
|
||||||
/* This allows to get same behavior when explicitely passing None as default value,
|
/* This allows to get same behavior when explicitly passing None as default value,
|
||||||
* and not defining a default value at all! */
|
* and not defining a default value at all! */
|
||||||
def = NULL;
|
def = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user