- AIX ifdef's so windows works, cant test but this seems the most used define. might need to add to buildsystem config.
- transform default scale was too hight, calls to random were inconsistant. (fault of own modif's) - cmake openal include was added twice on recent commit.
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
#
|
#
|
||||||
# ***** END LGPL LICENSE BLOCK *****
|
# ***** END LGPL LICENSE BLOCK *****
|
||||||
|
|
||||||
SET(INC . intern FX SRC ${PTHREADS_INC} ${LIBSAMPLERATE_INC} ${OPENAL_INCLUDE_DIR})
|
SET(INC . intern FX SRC ${PTHREADS_INC} ${LIBSAMPLERATE_INC})
|
||||||
|
|
||||||
FILE(GLOB SRC intern/*.cpp intern/*.h FX/*.cpp SRC/*.cpp)
|
FILE(GLOB SRC intern/*.cpp intern/*.h FX/*.cpp SRC/*.cpp)
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
#include <X11/cursorfont.h>
|
#include <X11/cursorfont.h>
|
||||||
#include <X11/Xatom.h>
|
#include <X11/Xatom.h>
|
||||||
|
|
||||||
#if defined(__sun__) || defined( __sun ) || defined (__sparc) || defined (__sparc__)
|
#if defined(__sun__) || defined( __sun ) || defined (__sparc) || defined (__sparc__) || defined (_AIX)
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -39,11 +39,9 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#if defined(__sun__) || defined( __sun ) || defined (__sparc) || defined (__sparc__) || defined (_AIX)
|
||||||
#ifndef WIN32
|
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "STR_String.h"
|
#include "STR_String.h"
|
||||||
|
|
||||||
/*-------------------------------------------------------------------------------------------------
|
/*-------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ def randomize_selected(seed, loc, rot, scale, scale_even, scale_min):
|
|||||||
|
|
||||||
if scale_even:
|
if scale_even:
|
||||||
sca_x = sca_y = sca_z = uniform(scale[0], - scale[0])
|
sca_x = sca_y = sca_z = uniform(scale[0], - scale[0])
|
||||||
|
uniform(0.0, 0.0), uniform(0.0, 0.0)
|
||||||
else:
|
else:
|
||||||
sca_x, sca_y, sca_z = rand_vec(scale)
|
sca_x, sca_y, sca_z = rand_vec(scale)
|
||||||
|
|
||||||
@@ -111,7 +112,7 @@ class RandomizeLocRotSize(bpy.types.Operator):
|
|||||||
|
|
||||||
scale_min = FloatProperty(name="Minimun Scale Factor",
|
scale_min = FloatProperty(name="Minimun Scale Factor",
|
||||||
description="Lowest scale percentage possible",
|
description="Lowest scale percentage possible",
|
||||||
default=15.0, min=-1.0, max=1.0, precision=3)
|
default=0.15, min=-1.0, max=1.0, precision=3)
|
||||||
|
|
||||||
scale = FloatVectorProperty(name="Scale",
|
scale = FloatVectorProperty(name="Scale",
|
||||||
description="Maximum scale randomization over each axis",
|
description="Maximum scale randomization over each axis",
|
||||||
|
|||||||
Reference in New Issue
Block a user