Commit Graph

26476 Commits

Author SHA1 Message Date
Andrea Weikert
56f89d2375 compile fixes on windows for quicktime.
* solved two "'blah' undefined, assuming extern returning int" 'warnings' that jesterKing now changed to be reported as errors (thanks! :))
2010-10-19 18:59:15 +00:00
Janne Karhu
fdfc09b49e Fix for [#24262] Segmentation attempting to render *NEED MOER INFO* 2010-10-19 17:45:19 +00:00
Janne Karhu
94aa87dd62 Fix for [#24293] Shadow pass is wrong
* The problem is that shadow pass is derived from the diffuse pass as
  shad = shad'/diff, where shad' = shad*diff. In cases where diff is
  0 and the division can't be done shad is left as shad' (=0).
* This all works just fine until the diffuse color is 0 on just one
  channel (no red in material color for example). In this case the shadow
  pass is left as 0 too regardless of the existence of an actual shadow,
  so the end result is a colored shadow!
* The only real solution is to use the original shadow intensity to
  determine if there actually is a shadow or not. This is now stored in
  shr->shad[3] from the lamp shadow calculation.

Note: The best solution would probably be to calculate the shadow pass on
it's own and not to derive it from the diffuse pass, but I didn't dare to
start messing up the shading code totally.
2010-10-19 16:10:30 +00:00
Campbell Barton
0a12a9bc7d [#24325] Texture painting using selected faces mask
draw a subtle grey over unselected faces rather then coloring selected faces which got in the way of seeing the colors while painting.
2010-10-19 15:35:46 +00:00
Campbell Barton
26249043e6 bugfix [#24324] Wrong center for scaling Bezier Curve's handles
slight change to how transform calculates the center of each bezier handle selection.
- selecting both handles but not the knot now uses the mid point between the 2, before it used the handle.
- selecting 1 handle of a curve was still setting td->center to be the knot, now use the handles location only if its selected.
2010-10-19 14:11:46 +00:00
Campbell Barton
dc7e1037d4 [#24307] 3d Viewport Mini 3D Axis changes color when alter 3d grid theme color
Drawing the view axis went to a lot of trouble to create a color which didnt look very good if the grid had a color other then grey set.
Simplify the function and just use the same colors as the manipulator, also use 2px fixed line width.
2010-10-19 13:04:40 +00:00
Campbell Barton
d1fe2dd967 bugfix [#24309] Reloading file with incorrect path location.
the cu->ctime was never set if the frame wasnt changed, so adding a curve and parenting could be done without a frame change leaving the cu->ctime value at zero.
changing the frame or rendering after this would make the parent relationship jump.

Set the curve->ctime in object_handle_update(), this way its set on file load and when linking in new curves.
Another option is to do this when parenting but probably this would miss other cases where its needed.
2010-10-19 12:21:57 +00:00
Janne Karhu
5f2764d849 Fix for [#24299] Changing Curves on rendered Pass scewes pass up seriously ;-)
* The number of pass channels wasn't taken properly into account when applying curves.
2010-10-19 11:51:31 +00:00
Campbell Barton
20c920e954 rename anim.c -> anim_movie.c since we have an anim.c in blenkernel too, it confused debuggers in some cases. 2010-10-19 11:39:37 +00:00
Campbell Barton
03d4121a55 Cancelling rotation on axis/angle object rotation didnt restore the original rotation.
also commented drotAxis/Angle since its not used yet.
2010-10-19 11:15:08 +00:00
Campbell Barton
5738f3b0b4 bugfix [#24322] Rotating objects with Axis+Angle mode fails. 2010-10-19 10:32:02 +00:00
Janne Karhu
ff5cbabffd Fix for [#24313] Displacement modifier is not respecting animated texture channels. 2010-10-19 10:26:53 +00:00
Janne Karhu
bb92265995 Fix for [#24319] Removing a cloth or softbody simulation in paticle mode problem 2010-10-19 10:17:19 +00:00
Campbell Barton
f979bca911 fix for exceptions in recent commit. 2010-10-19 09:50:43 +00:00
Nathan Letwory
d7b40531cd Fix [#20277] Bug with Continuous Grab on Windows
Reported by Alex Glawion

When we have a maximized window we need to take into account
that there are no borders.
2010-10-19 09:38:56 +00:00
Janne Karhu
a781157047 Fix for bugs [#24316] Changing particles path step in particle mode makes lines invisible and [#24318] Particle lines disappear if view particles are enabled. 2010-10-19 09:28:38 +00:00
Campbell Barton
53c1d1a18a patch [#24320] Fix for [#24311] Copy and Paste
from Alexander Kuznetsov (alexk)

   This check was dubious to begin with, if it causes more problems it should be removed.
2010-10-19 08:35:30 +00:00
Campbell Barton
f3b031314d [#24270] RNA Properties with long Variable Names
disallow registering RNA with names longer then 31 chars.
2010-10-19 07:23:34 +00:00
Sergey Sharybin
6a842c19ae Fix #24321: duplicate of multiresolution modifier error 2010-10-19 07:10:12 +00:00
Nathan Letwory
f515b579e7 Remove BLI_bfile.c from build process. It is unused, and currently throws error C4013
(ie. previous commit works sweetly ;)
2010-10-19 05:47:22 +00:00
Nathan Letwory
db74070778 Make C4013 throw a warning
-> 'function' undefined; assuming extern returning int
2010-10-19 05:42:31 +00:00
Campbell Barton
0aa2eee3ef bugfix with applying the object matrix with negative scales.
--- fixes report by ronan ducluzeau
Scale default cube on X axis to -1.
Rotate it on X axis to 33°.

Parent cube to lamp.
Clear parent and keep offset.

Cube's scaling value on X axis pass from -1 to 1
Cube's rotation value on Z axis pass from 0° to 180°
2010-10-19 05:36:16 +00:00
Nathan Letwory
62aacd1aa7 Set defaults for compile and link flags to lists. 2010-10-19 05:21:28 +00:00
Nathan Letwory
2a89fb887e * Enable compile and link flags to build info also on Windows and in SCons.
* Added build_system SCons or CMake
* Write the new build info also to system-info.txt
2010-10-19 05:00:36 +00:00
Campbell Barton
42d4e93733 Using unsigned int from own commit r32425 broke tiling image textures in imagetexture.c.
Most formats use unsigned int, but practically its unlikely to be a problem to use int.
2010-10-19 04:29:05 +00:00
Campbell Barton
13d684f7bb fix for implicit declaration, not sure why this happens but OpenSuse 11.1 wouldn't build. 2010-10-19 04:25:16 +00:00
Campbell Barton
3498e22468 Disable LCMS by default for scons. 2010-10-19 02:50:00 +00:00
Campbell Barton
a7734cf3c0 bugfix [#24314] Motion path (ghosting/onioning) numbers are displayed with offset 2010-10-19 02:41:09 +00:00
Nicholas Bishop
8b0179a965 == Sculpt ==
Fixed bug #24111, "Mirror clipping not working while sculpting a mirrored mesh"

* Mirror modifiers can handle multiple-axis mirroring, updated sculpt to work with that
* Marked the "axis" field of MirrorModifierData deprecated, since it looks like bitflags are supposed to be used now
2010-10-19 01:57:15 +00:00
Campbell Barton
e01c00d194 bugfix [#24289] bpy.ops.object.select_name() is broken 2010-10-19 01:48:03 +00:00
Campbell Barton
de1f68a5e4 patch by Elia Sarti, adding selectable_objects and selectable_bases to the screen context, allowing some operators to run from the console which previously only worked in the 3D view. 2010-10-19 01:24:09 +00:00
Campbell Barton
106867910e use unsigned int for all layers. 2010-10-19 01:21:22 +00:00
Nathan Letwory
b743454ce1 Add Toggle System Console entry to Help menu on Windows systems. 2010-10-18 22:37:21 +00:00
Nathan Letwory
f08a9dfd8a Add operator for toggling cmd box on Windows.
Use through search menu (Toggle System Console) or
call bpy.ops.wm.toggle_console().

This is based on patch [#6927] Optional Console for Windows
by Fahrezal Effendi, submitted on July 10th, 2007 (!)

This paves the way for adding a command-line option to Blender to
toggle this cmd console, and for having a user preference option
for this. Command-line option I haven't added yet, as there seemed
to be problems with Python interpreter initialization (read: crashes).

This works by redirecting stdout and stderr to blenderlog.txt in user
temp directory (most likely %TEMP%\blenderlog.txt). When python problem
is fixed we can use this to always redirect stdout and stderr to this
logfile, making it also easier for us to ask users for this file in 
bugreports.
2010-10-18 20:41:52 +00:00
Nathan Letwory
6e77dc1942 whitespace commit, AKA commit count bump. 2010-10-18 20:33:04 +00:00
Nathan Letwory
d5f160d1e8 Mangle unused parameter names also on non-GCC platforms. This should help in situations where a coder starts using the previously
unused tagged parameter after all, reminding the coder to remove the tag and check further.
2010-10-18 20:32:11 +00:00
Andrea Weikert
bf09c851a9 quick commit for forgotten file in the G.sce -> G.main->name refactoring.
Patch by Jens Verwiebe, many thanks.
2010-10-18 17:55:11 +00:00
Campbell Barton
77867dfab1 remove annoying warnings for blenderplayers stub.c 2010-10-18 13:22:34 +00:00
Campbell Barton
b1e8d168d7 recent fix for relative imports broke autocomp. 2010-10-18 13:16:43 +00:00
Campbell Barton
799fc68234 cflags, cxxflags & linkflags in buildinfo. 2010-10-18 12:56:14 +00:00
Campbell Barton
6d0d688943 define NDEBUG for release builds so assert() is disabled. 2010-10-18 12:35:40 +00:00
Campbell Barton
afc8d8b3e3 bugfix [#24306] Python : relative import error 2010-10-18 11:37:53 +00:00
Campbell Barton
58683fa993 enable DEBUG define in CMake and scons, also change booleans debug option to BOP_DEBUG, which was used inconsistently, and had to add a define for superlu. 2010-10-18 11:21:22 +00:00
Janne Karhu
9650667b3d [#21475] Moving a Transform strip upwards moves its animation sidewards
* F-Curve translation is now calculated from the difference of the strips original & resulting start time, instead of using the transform data directly.
2010-10-18 10:52:57 +00:00
Janne Karhu
c092a18fcb [#24209] Texture Forcefields: Use Object Coordinates produces incorrect results (patch included)
* Original patch provided by Alexander Beels and modified a bit by me.
2010-10-18 08:17:04 +00:00
Campbell Barton
b7ad16983c Camera object drawing now shows shift (not especially important but the tracker is being unusably slow) 2010-10-18 08:11:34 +00:00
Nathan Letwory
9bd94eebc4 _DEBUG -> DEBUG 2010-10-18 07:24:08 +00:00
Nathan Letwory
6c505c97a7 _DEBUG -> DEBUG 2010-10-18 07:03:38 +00:00
Campbell Barton
8862afcb51 this should fix quicktime building from last commit. 2010-10-18 07:01:46 +00:00
Nathan Letwory
a293f76cdf Use DEBUG instead of NDEBUG 2010-10-18 06:52:10 +00:00