Commit Graph

22328 Commits

Author SHA1 Message Date
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
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
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
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
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
799fc68234 cflags, cxxflags & linkflags in buildinfo. 2010-10-18 12:56:14 +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
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
Campbell Barton
4d37cf90b9 remove G.sce, use G.main->name instead.
Both stored the filename of the blend file, but G.sce stored the last opened file.
This will make blender act differently in some cases since a relative path to the last opened file will no longer resolve (which is correct IMHO since that file isnt open and the path might not even be valid anymore).

Tested linking with durian files and rendering to relative paths when no files is loaded however we may need to have some operators give an error if they are used on the default startup.blend.
2010-10-18 06:41:16 +00:00
Nathan Letwory
b3afc3618d Remove unused code. 2010-10-18 06:34:02 +00:00
Campbell Barton
7db9558cf6 bugfix [#24291] Error parenting a child with any negative scaling coordinate
the bug was in object_apply_mat4(), caused by applying a non-normalized matrix to the rotation.
Blender 2.4x also had this problem, surprising nobody noticed!.
2010-10-18 02:36:43 +00:00
Nathan Letwory
03085d2cae Fix [#24200] COLLADA Exporter: Aspect ratio is not exported
Reported by Wenzel Jakob, patch [#24235] by Phil Gosch
2010-10-18 00:46:41 +00:00
Campbell Barton
433f871f0f bugfix [#24302] Ctrl+Click Extrude gets old mouse events
double click didnt check mouse distance moved so you could click twice in different areas of the screen very fast and generate a double click event which had old mouse coords copied into it but was sent to an operator set to run on single click (because the double click wasnt handled).

Also added MEM_name_ptr function (included in debug mode only), prints the name of allocated memory.
used for debugging where events came from.
2010-10-18 00:25:32 +00:00
Nathan Letwory
c1e1551ef1 Fix [#24288] Mesh Grid pointing towards the floor when first created
Reported by Terry Wallwork
2010-10-17 23:08:05 +00:00
Nathan Letwory
fec7585190 Fix [#24294] IMB_allocImBuf changes in r32517 missed a couple of files
Reported and patched by Shane Ambler
2010-10-17 18:56:36 +00:00
Joshua Leung
0069c52104 Disabling menu entry for adding "Python" F-Modifier.
This hasn't been coded yet, and I don't think I'll be adding it very soon yet, so disabling to avoid further confusion over this.
2010-10-17 11:21:53 +00:00
Joshua Leung
013ffe9041 Bugfix #24296: AutoIK interactive chain length adjustment feature is missing
In 2.49, you could adjust the maximum length of Auto-IK Chains by using scrollwheel up/down or page up/down while moving Auto-IK bones. Now this is possible again with those hotkeys, but you need to hold SHIFT to get this to work, otherwise we get a conflict with the hotkeys for proportional edit nowadays.

Was broken when transform tools switched from using hardcoded key mappings to using a modal keymap.
2010-10-17 11:20:12 +00:00
Joshua Leung
6f1783470e Partial fix for #22409: Locked axis + auto IK = bad
The "root" bone in an Auto-IK chain was never added properly if it didn't have a parent that it was connected to. This meant that if it had axis-locking (using transform locks), these would not get converted to temporary IK-locks. This also affects 2.49

The second part of the bug report though, is something more ingrained in the IK-solver internals (numeric error, which means that even locked axes aren't exactly untouched).
2010-10-17 10:46:06 +00:00
Joerg Mueller
d6d1f3cb68 Reverting Cam's audio code changes from revision 32517. Part of it has been reverted by Nathan already. Cam: next time please check, why a parameter is unused before you remove it! 2010-10-17 09:01:37 +00:00
Campbell Barton
856389eac7 re-arrange icon_draw_rect, also use an assert() for odd icon sizes. this can happen in some cases but hard to find when. 2010-10-17 09:01:12 +00:00
Campbell Barton
7d10ad012d fix for bad use of UNUSED() with win32 & some other minor error checks. 2010-10-17 08:59:23 +00:00
Campbell Barton
30b79ddcc6 - fixed remaining unused warnings.
- omit render code from this warning (cmake only), until render branch is merged.
- moved -Wunused-parameter warning to apply to all C code in blender (not just ./source/blender), (cmake only).
2010-10-17 06:38:56 +00:00
Sergey Sharybin
28e144db92 Fix #24139: Edge loop + Multi-Resolution modifier results weird artifacts
- mdisp_corners used to return incorrect number of verts in some cases
- fixed memory corruption when face changed vertex count in
  edit mode (forgot displacement for such faces atm, could be changed
  in the future)
2010-10-16 20:43:16 +00:00
Elia Sarti
3b6564a821 Fix for [#24292] When rendering with the stamp feature the scene opt. affects the seq. strip placement
Fixed typo.
2010-10-16 17:28:52 +00:00
Nathan Letwory
ac03fbe4c9 Adapt OSX code for IMB_allocImBuf param changes. 2010-10-16 15:53:01 +00:00
Nathan Letwory
53ced0be29 Now sound init param removal revert should be fine (apparently my cmake project files missed rebuild hint for these, fortunately SCons did its job well). 2010-10-16 15:00:04 +00:00
Nathan Letwory
03eb8d0222 Maybe now correct commit :° 2010-10-16 14:53:54 +00:00
Nathan Letwory
1aecaaf815 Forgot to commit RNA part of revert in 32519 2010-10-16 14:51:50 +00:00
Nathan Letwory
fe693b4631 Revert overaggressive parameter removal: Main struct is used in audio when Jack support is enabled. 2010-10-16 14:49:56 +00:00
Nathan Letwory
5ca362c422 Declaration before any statements. Doesn't GCC warn about this? 2010-10-16 14:43:47 +00:00
Campbell Barton
8268a4be71 most unused arg warnings corrected.
- removed deprecated bitmap arg from IMB_allocImBuf (plugins will need updating).
- mostly tagged UNUSED() since some of these functions look like they may need to have the arguments used later.
2010-10-16 14:32:17 +00:00
Joshua Leung
7cc5aaf18a Added panel for accessing the "delta transforms" for Objects (this is closed by default to not clutter that much).
This should help silence complaints from some about "dloc",etc. not being easily keyable. 

It's also a nice way to have instances of animated objects located in different places, by animating either the standard transforms or the deltas, and then modifying by not animating the other version to keep the instances from going to a single point. This was a common newbie problem in 2.4x.
2010-10-16 11:52:30 +00:00
Joshua Leung
98d6c533a6 Bugfix #23979: FCurve.keyframe_points.add(..., replace=True)
... fails if there were no keyframes in the curve yet. Was a missing null-check for case when no keyframe array is created.

Also, changed the description for the "replace" arg to better reflect what it really does.
2010-10-16 11:30:41 +00:00