10 years agoRNA properties - expose values as radians rather then degrees
Campbell Barton [Thu, 9 Jun 2011 08:58:27 +0000 (08:58 +0000)]
RNA properties - expose values as radians rather then degrees
- sequencer wipe angle
- mesh autosmooth
- bevel modifier angle
- edge split angle

10 years agouse a better method for finding the precision to use for float buttons, about 4x...
Campbell Barton [Thu, 9 Jun 2011 07:40:30 +0000 (07:40 +0000)]
use a better method for finding the precision to use for float buttons, about 4x faster to calculate and will show for eg, 0.0108 rather than 0.01, but 0.0100001 still displays as 0.01.

10 years agofix [#27616] Appending an object from a file brings all existing group links to scene
Campbell Barton [Thu, 9 Jun 2011 04:28:53 +0000 (04:28 +0000)]
fix [#27616] Appending an object from a file brings all existing group links to scene
When appending from a blend file which had an object already linked, _but_ was not in any scenes.
- the linked object would be instanced.

10 years ago[#27615] Box select of mesh object disabled or translated due to curve object
Campbell Barton [Thu, 9 Jun 2011 03:56:32 +0000 (03:56 +0000)]
[#27615] Box select of mesh object disabled or translated due to curve object

ED_view3d_init_mats_rv3d was calling glMultMatrixf() which was mostly harmless but could also lead to confusing bugs (2 reported previously).
Looked into this and every call to ED_view3d_init_mats_rv3d except for object drawing, doesn't need this so made a second version of ED_view3d_init_mats_rv3d - ED_view3d_init_mats_rv3d_gl which does the matrix multiplication, remove confusing checks in selection code.

10 years agoadd foreachIDLink function for cloth, remove cloth specific newlibadr calls in readfile.
Campbell Barton [Thu, 9 Jun 2011 02:47:22 +0000 (02:47 +0000)]
add foreachIDLink function for cloth, remove cloth specific newlibadr calls in readfile.

10 years agoBugfix #27601
Ton Roosendaal [Wed, 8 Jun 2011 16:08:57 +0000 (16:08 +0000)]
Bugfix #27601

Revision for previous fix; fast gaussian now survives on images
with a dimension smaller than 3 pixels!

Thanks Bastien Montagne for patch.

10 years agofix for own error r35918, generalizing looping over modifier ID links
Campbell Barton [Wed, 8 Jun 2011 16:00:52 +0000 (16:00 +0000)]
fix for own error r35918, generalizing looping over modifier ID links
broke loading smoke group references because they already had calls to
newlibadr_us() elsewhere, removing those assignments fixes loading.

10 years agoBugfix #27601
Ton Roosendaal [Wed, 8 Jun 2011 15:17:38 +0000 (15:17 +0000)]
Bugfix #27601

Scaling in compostior down to 1 pixel size crashed gaussian blur.

10 years agoApply [#27477] COLLADA export support for textures mapped to COLSPEC
Nathan Letwory [Wed, 8 Jun 2011 13:00:25 +0000 (13:00 +0000)]
Apply [#27477] COLLADA export support for textures mapped to COLSPEC
Patch provided by Pelle Johnsen

10 years agoShuffle some build code around to ensure debug builds on Windows actually run too.
Nathan Letwory [Wed, 8 Jun 2011 11:53:07 +0000 (11:53 +0000)]
Shuffle some build code around to ensure debug builds on Windows actually run too.

* creator/SConscript is now empty, code is moved to an emitter function in
* make sure COLLADA debug libs are used when BF_DEBUG=True

10 years agoBugfix [#27586] P for setting playback range is clamped to > 0
Joshua Leung [Wed, 8 Jun 2011 10:57:24 +0000 (10:57 +0000)]
Bugfix [#27586] P for setting playback range is clamped to > 0

Thanks for the patch Bastien Montagne. Was just legacy code from 2.4x

10 years agofix of fix :| [real fix for #36787 -- it was wrongly fixed on #36964]
Dalai Felinto [Wed, 8 Jun 2011 09:01:41 +0000 (09:01 +0000)]
fix of fix :| [real fix for #36787 -- it was wrongly fixed on #36964]
I guess I tested the fix outside the camera view (which always worked). duhhh
Working now.

10 years agocmake: remove python include in the wm module, set opengl as a system include.
Campbell Barton [Wed, 8 Jun 2011 05:39:58 +0000 (05:39 +0000)]
cmake: remove python include in the wm module, set opengl as a system include.

10 years agodon't write file history in backgound mode (running ctest would overwrite all my...
Campbell Barton [Wed, 8 Jun 2011 01:53:12 +0000 (01:53 +0000)]
don't write file history in backgound mode (running ctest would overwrite all my recent-files.txt), and add an error about mingw/quicktime being unsupported.

10 years agodraw sequences with invalid effect frame ranges pink to highlight they are invalid...
Campbell Barton [Tue, 7 Jun 2011 18:34:33 +0000 (18:34 +0000)]
draw sequences with invalid effect frame ranges pink to highlight they are invalid and wont render.

10 years agofix for vertex group copy to selected
Campbell Barton [Tue, 7 Jun 2011 18:04:03 +0000 (18:04 +0000)]
fix for vertex group copy to selected
- was using un-initialized stack memory if the source / target object had no vertex group.
- if the target object had no vertex groups it would fails silently (not a bug but not very good functionality)
- added an error message if any copying fails.

10 years agofix for sequencer transform with effects strips where the effects could be moved...
Campbell Barton [Tue, 7 Jun 2011 16:47:25 +0000 (16:47 +0000)]
fix for sequencer transform with effects strips where the effects could be moved to invalid times to avoid overlap but would immediately refresh back to overlapping locations after.

10 years agodisable the readonly state while rna property callbacks run.
Campbell Barton [Tue, 7 Jun 2011 16:08:49 +0000 (16:08 +0000)]
disable the readonly state while rna property callbacks run.

10 years agoFix: correct spacing for file select items, using font size + dpi.
Ton Roosendaal [Tue, 7 Jun 2011 15:33:01 +0000 (15:33 +0000)]
Fix: correct spacing for file select items, using font size + dpi.

10 years agorna option not to save certain properties for redoing later, currently only used...
Campbell Barton [Tue, 7 Jun 2011 10:54:57 +0000 (10:54 +0000)]
rna option not to save certain properties for redoing later, currently only used by operator presets.

10 years agofix for edge slide snapping values being incorrect (reported by Nether Hound).
Campbell Barton [Tue, 7 Jun 2011 09:35:20 +0000 (09:35 +0000)]
fix for edge slide snapping values being incorrect (reported by Nether Hound).
Also dont call the value a 'Percent' and clamp the range displayed in the header.
snap range being

10 years agoupdate ctest md5sums for import/export to match changes to the scripts, also some...
Campbell Barton [Tue, 7 Jun 2011 08:47:33 +0000 (08:47 +0000)]
update ctest md5sums for import/export to match changes to the scripts, also some minor formatting change for bpy_props.c

10 years agogetting useful results out of the round compo node was tricky, use the second value...
Campbell Barton [Tue, 7 Jun 2011 08:16:42 +0000 (08:16 +0000)]
getting useful results out of the round compo node was tricky, use the second value to determine how much to round by (can be used like a posterize filter)

10 years agoerror pointed out by Jeroen Bakker with the math nodes round function. was incorrectl...
Campbell Barton [Tue, 7 Jun 2011 07:57:26 +0000 (07:57 +0000)]
error pointed out by Jeroen Bakker with the math nodes round function. was incorrectly using the output rather then the input.

10 years agofix for glitch in previous commit with 0.00002 displaying as 0.000020, this uses...
Campbell Barton [Tue, 7 Jun 2011 05:26:10 +0000 (05:26 +0000)]
fix for glitch in previous commit with 0.00002 displaying as 0.000020, this uses 2 calls to double_round which I'd rather avoid but at least it now works right for users.

10 years agosmarter precision calculation, so 0.000001 isn't displayed as 0.00.
Campbell Barton [Tue, 7 Jun 2011 04:06:10 +0000 (04:06 +0000)]
smarter precision calculation, so 0.000001 isn't displayed as 0.00.
there is a minor problem with this commit:
 0.00001 --> 0.00001 # good
 0.000015 --> 0.000015 # good
 0.0000199 --> 0.00002 # ok
 0.00002 --> 0.000020 # wrong, has trailing 0

Tried to fix this but the case is hard to check for without more calculations which Id like to avoid.

10 years agoMove UI float precission calculation into its own function.
Campbell Barton [Tue, 7 Jun 2011 02:39:40 +0000 (02:39 +0000)]
Move UI float precission calculation into its own function.

10 years agoA line of code -can- wreck your day. Should work now, :)
Antony Riakiotakis [Mon, 6 Jun 2011 23:19:25 +0000 (23:19 +0000)]
A line of code -can- wreck your day. Should work now, :)

10 years agofix for float projection painting, now updating correctly.
Antony Riakiotakis [Mon, 6 Jun 2011 22:10:05 +0000 (22:10 +0000)]
fix for float projection painting, now updating correctly.

This fix also allows for partial update of the image, speeding up painting.
The different code path implemented will be used to upload high resolution images to OpenGL when onion branch is merged.
Due to conversion of float textures to/from sRGB, corrections made to brush color sampling to take account of the image profile. This is not 100% correct yet as texture images used for projection painting strokes are not converted to/from sRGB yet(This has been decided due to loss of precision for 8-bit formats). It will have to do for now, though.

last-minute update, exr image loading is broken, will fix asap

10 years agoUI: fix render properties panel order, it didn't match order in startup.blend,
Brecht Van Lommel [Mon, 6 Jun 2011 20:04:58 +0000 (20:04 +0000)]
UI: fix render properties panel order, it didn't match order in startup.blend,
so was different when opening a new property editor.

10 years agoUI: rename mesh Settings panel to Texture Space, since it only contains
Brecht Van Lommel [Mon, 6 Jun 2011 19:44:28 +0000 (19:44 +0000)]
UI: rename mesh Settings panel to Texture Space, since it only contains
settings related to that. Also close by default.

10 years agoOne more debug line was deleted from multires bakers.
Sergey Sharybin [Mon, 6 Jun 2011 19:33:38 +0000 (19:33 +0000)]
One more debug line was deleted from multires bakers.
Now it would work really fast.

10 years agoFix for new baker and float images. Also removed code used for debugging.
Sergey Sharybin [Mon, 6 Jun 2011 19:06:44 +0000 (19:06 +0000)]
Fix for new baker and float images. Also removed code used for debugging.

10 years ago2.5 todo:
Ton Roosendaal [Mon, 6 Jun 2011 18:04:57 +0000 (18:04 +0000)]
2.5 todo:

User setting "DPI" now works for outliner too.
(todo: color picker, brush menu, nodes, fileselect path buttons, view2d sliders, ...)

10 years agoSupport for update callbacks in python defined RNA properties as discussed last meeting.
Campbell Barton [Mon, 6 Jun 2011 17:50:20 +0000 (17:50 +0000)]
Support for update callbacks in python defined RNA properties as discussed last meeting.
This means script authors can perform actions using these callbacks rather then on drawing which puts blender in a readonly state.

Simple example:

import bpy
def up_func(self, context):

bpy.types.Scene.testprop = bpy.props.FloatProperty(update=up_func)
bpy.context.scene.testprop = 11

# prints -> test

10 years agoavoid cd'ing with the makefile stub
Campbell Barton [Mon, 6 Jun 2011 16:00:32 +0000 (16:00 +0000)]
avoid cd'ing with the makefile stub

10 years agoKeymaps: fix keymap items created in python being added with the python
Brecht Van Lommel [Mon, 6 Jun 2011 13:35:43 +0000 (13:35 +0000)]
Keymaps: fix keymap items created in python being added with the python
operator names instead of the internal names. This wasn't really noticeable,
expect that it broke automatically looking up shortcuts for display in menus.

10 years ago2.5 Text Editor:
Thomas Dinges [Mon, 6 Jun 2011 12:52:26 +0000 (12:52 +0000)]
2.5 Text Editor:
* Added back Red Alert for "Resolve External conflicts" warning.

10 years agobug [#27582] Screen Editing > Split and Join area don't work.
Campbell Barton [Mon, 6 Jun 2011 11:56:54 +0000 (11:56 +0000)]
bug [#27582] Screen Editing > Split and Join area don't work.
added 'INTERNAL' operator flag so operators which are only meant to be called by other operators or internal use are not displayed to the user.

Currently only use this flag for the operator search toolbox, is ignored in debug mode.

10 years agoAdded cancel callbacks to modal operators which allocates memory
Sergey Sharybin [Mon, 6 Jun 2011 11:04:54 +0000 (11:04 +0000)]
Added cancel callbacks to modal operators which allocates memory
in invoke callback. This prevents unfreed memory blocks when quiting
Bledner with modal operator running.

10 years agofix for 2D paint being off by 1 pixel on x/y axis, most obvious when zoomed in.
Campbell Barton [Mon, 6 Jun 2011 10:08:27 +0000 (10:08 +0000)]
fix for 2D paint being off by 1 pixel on x/y axis, most obvious when zoomed in.

10 years agouse the same stippled drawing for colorband background as alpha color swatches, with...
Campbell Barton [Mon, 6 Jun 2011 09:12:03 +0000 (09:12 +0000)]
use the same stippled drawing for colorband background as alpha color swatches, with low DPI would look squashed, also use the same colors for both.

10 years agofix/workaround [#27559] Color picker fails with a very small brush
Campbell Barton [Mon, 6 Jun 2011 08:43:17 +0000 (08:43 +0000)]
fix/workaround [#27559] Color picker fails with a very small brush
fade out small brushes so the brush wont interfere with the color directly under the cursor.

10 years agofix from nico_ga on IRC, building on MSVC with jack but not ffmpeg.
Campbell Barton [Mon, 6 Jun 2011 08:40:47 +0000 (08:40 +0000)]
fix from nico_ga on IRC, building on MSVC with jack but not ffmpeg.

10 years agoobject-mode lattice bounds were not taken into account when calculating min/max.
Campbell Barton [Mon, 6 Jun 2011 07:29:57 +0000 (07:29 +0000)]
object-mode lattice bounds were not taken into account when calculating min/max.
effected view-selected, center-origin & local view.

10 years agofix [#27572] Mirror Shapekey and Mirror vertex Group not working for Lattice.
Campbell Barton [Mon, 6 Jun 2011 06:40:09 +0000 (06:40 +0000)]
fix [#27572] Mirror Shapekey and Mirror vertex Group not working for Lattice.

10 years agoResolve 2 theme issues
Campbell Barton [Mon, 6 Jun 2011 03:53:22 +0000 (03:53 +0000)]
Resolve 2 theme issues
[#27056] default active and selected colors need to be visually different
[#27584] Please change sharpness/seam color

10 years agospelling corrections
Campbell Barton [Mon, 6 Jun 2011 00:48:10 +0000 (00:48 +0000)]
spelling corrections

10 years agofix for crash opening the file selector twice with multiple windows open (when the...
Campbell Barton [Mon, 6 Jun 2011 00:42:36 +0000 (00:42 +0000)]
fix for crash opening the file selector twice with multiple windows open (when the mouse was over the inactive window).

10 years agoreplacing -> arrows by proper ASCII arrows on Transformation Constraint
Dalai Felinto [Sun, 5 Jun 2011 23:38:11 +0000 (23:38 +0000)]
replacing -> arrows by proper ASCII arrows on Transformation Constraint

Note: Text Editor doesn't support this chr(187) properly. I hardcoded and commented the ui file. I hope it's fine.

10 years agoFix [#27438] Volume Material Density Inaccuracy
Matt Ebb [Sun, 5 Jun 2011 22:35:37 +0000 (22:35 +0000)]
Fix [#27438] Volume Material Density Inaccuracy

Lower density limit for shading optimisation was set too high

10 years agoBake from multires mesh
Sergey Sharybin [Sun, 5 Jun 2011 20:54:04 +0000 (20:54 +0000)]
Bake from multires mesh

Added option to baked named "Bake From Multires" which is avaliable for
normals baking and displacement baking.

If this option is enabled, then no additional hi-res meshes and render
structures would be created . This saves plenty of memory and meshes
with millions of faces could be successfully baked in few minutes.

Baking happens from highest level against viewport subdivision level,
so workflow is following:
  - Set viewport level to level at which texture would be applied
    during final rendering.
  - Choose Displacement/Normals baking.
  - Enable "Bake From Multires" option.
  - You're ready to bake.

Displacement baker had aditional option named "Low Resolution Mesh".
This option is used to set if you want texture for realtime (games)

Internally it does the following:
  - If it's disabled, displacement is calculated from subdivided
    viewport level, so texture looks "smooth" (it's how default
    baked works).
  - If it's enabled, dispalcement is calculated against unsubdivided
    viewport levels. This leads to "scales". This isn;t useful for
    offline renders much, but very useful for creating game textures.

Special thanks to Morten Mikkelsen (aka sparky) for all mathematics
and other work he've done fr this patch!

10 years agofixed warning, signed/unsigned mismatch, blo/readfile.c line 1742
Jason Wilkins [Sun, 5 Jun 2011 18:00:24 +0000 (18:00 +0000)]
fixed warning, signed/unsigned mismatch, blo/readfile.c line 1742

10 years agooperator buttons get a red highlight when alert is set for the layout
Campbell Barton [Sun, 5 Jun 2011 17:02:57 +0000 (17:02 +0000)]
operator buttons get a red highlight when alert is set for the layout

10 years agoown commit r37199 gave problems with duplicating objects, use different fix.
Campbell Barton [Sun, 5 Jun 2011 15:29:50 +0000 (15:29 +0000)]
own commit r37199 gave problems with duplicating objects, use different fix.

10 years agofile selector now scales with DPI better
Campbell Barton [Sun, 5 Jun 2011 14:00:06 +0000 (14:00 +0000)]
file selector now scales with DPI better

10 years agocolorband and image header were ignoring DPI size
Campbell Barton [Sun, 5 Jun 2011 13:20:30 +0000 (13:20 +0000)]
colorband and image header were ignoring DPI size

10 years agoBugfix: new DPI-controlled UI size code was setting 'view2d re-init'
Ton Roosendaal [Sun, 5 Jun 2011 12:57:09 +0000 (12:57 +0000)]
Bugfix: new DPI-controlled UI size code was setting 'view2d re-init'
flag on ED_area_initialize(). This however was causing 2 problems;
- the view state got reset (popping window view back)
- the view2d operator polls failed (sliders didnt work)

This re-init was only needed for the headers though, limiting it
to these types of regions solves it.

10 years agopanel headers were not scaling with DPI properly
Campbell Barton [Sun, 5 Jun 2011 12:47:17 +0000 (12:47 +0000)]
panel headers were not scaling with DPI properly

10 years agoscale the file selector UI with the DPI, the region size can still be wrong though.
Campbell Barton [Sun, 5 Jun 2011 10:05:13 +0000 (10:05 +0000)]
scale the file selector UI with the DPI, the region size can still be wrong though.

10 years agoworkaround for supremely annoying UI glitch where you could accidentally hide the...
Campbell Barton [Sun, 5 Jun 2011 09:22:14 +0000 (09:22 +0000)]
workaround for supremely annoying UI glitch where you could accidentally hide the file selector header by accident.
using the logic - that a header taking up the full screen-area height will not have an action-zone added for resizing.

10 years agowith the new scalable UI. hard coded values were still used for resizing the headers...
Campbell Barton [Sun, 5 Jun 2011 09:00:36 +0000 (09:00 +0000)]
with the new scalable UI. hard coded values were still used for resizing the headers, with DPI of 56 the headers could not be un-hidden.

10 years agopy/drivers disable dont interning strings, no need really since this isnt done on...
Campbell Barton [Sun, 5 Jun 2011 08:18:37 +0000 (08:18 +0000)]
py/drivers disable dont interning strings, no need really since this isnt done on every execution.

10 years agocompile without splash and icons when WITH_HEADLESS is set.
Campbell Barton [Sun, 5 Jun 2011 07:55:18 +0000 (07:55 +0000)]
compile without splash and icons when WITH_HEADLESS is set.

10 years agofix [#27554] vertex group names
Campbell Barton [Sun, 5 Jun 2011 04:52:32 +0000 (04:52 +0000)]
fix [#27554] vertex group names
- duplicate vertex group names were not being checked for.
- also made the first duplicate end with .001 rather than .000

10 years agoSVN maintenance.
Guillermo S. Romero [Sun, 5 Jun 2011 00:10:20 +0000 (00:10 +0000)]
SVN maintenance.

10 years agoChanged "Convert" to "Convert to" since the first one is incorrect. Removed some...
Daniel Salazar [Sat, 4 Jun 2011 23:02:44 +0000 (23:02 +0000)]
Changed "Convert" to "Convert to" since the first one is incorrect. Removed some dots at the end of tooltips following the standard

10 years agoCode holiday commit:
Ton Roosendaal [Sat, 4 Jun 2011 17:03:46 +0000 (17:03 +0000)]
Code holiday commit:

- fix: user pref, window title was reset to 'Blender' on tab usage

- Undo history menu back:
  - name "Undo History"
  - hotkey alt+ctrl+z (alt+apple+z for mac)
  - works like 2.4x, only for global undo, editmode and particle edit.

- Menu scroll
  - for small windows or screens, popup menus now allow to display
    all items, using internal scrolling
  - works with a timer, scrolling 10 items per second when mouse
    is over the top or bottom arrow
  - if menu is too big to display, it now draws to top or bottom,
    based on largest available space.
  - also works for hotkey driven pop up menus.

- User pref "DPI" follows widget/layout size
  - widgets & headers now become bigger and smaller, to match
    'dpi' font sizes. Works well to match UI to monitor size.
  - note that icons can get fuzzy, we need better mipmaps for it

10 years agoCMake option 'WITH_HEADLESS' to build blender in headless mode (no x11/xlib) with...
Campbell Barton [Sat, 4 Jun 2011 14:12:55 +0000 (14:12 +0000)]
CMake option 'WITH_HEADLESS' to build blender in headless mode (no x11/xlib) with NULL ghost classe.

10 years agoedits to make these cmake files compatible with my own basic cmake parser which check...
Campbell Barton [Sat, 4 Jun 2011 11:06:41 +0000 (11:06 +0000)]
edits to make these cmake files compatible with my own basic cmake parser which checks for correctness in our files.

10 years agofix [#27568] Segmentation fault in Sequencer when adding an effect strip with python
Campbell Barton [Sat, 4 Jun 2011 10:39:04 +0000 (10:39 +0000)]
fix [#27568] Segmentation fault in Sequencer when adding an effect strip with python
disallow negative length effect strips.

10 years agoUI for texture space in mesh/curve/mball data properties
Daniel Salazar [Sat, 4 Jun 2011 08:09:34 +0000 (08:09 +0000)]
UI for texture space in mesh/curve/mball data properties

10 years agoquiet 2 compiler warnings and update man page
Campbell Barton [Sat, 4 Jun 2011 03:07:56 +0000 (03:07 +0000)]
quiet 2 compiler warnings and update man page

10 years agoFix for linux buildslaves. Now they should be able to compile branches.
Sergey Sharybin [Fri, 3 Jun 2011 21:36:39 +0000 (21:36 +0000)]
Fix for linux buildslaves. Now they should be able to compile branches.

10 years agoBuildBot: various changes to support building branches.
Brecht Van Lommel [Fri, 3 Jun 2011 20:44:23 +0000 (20:44 +0000)]
BuildBot: various changes to support building branches.

10 years agoBugFix: [#27556] Replace mesh for gfx in "Edit Object" actuator act illogically ...
Dalai Felinto [Fri, 3 Jun 2011 07:53:55 +0000 (07:53 +0000)]
BugFix: [#27556] Replace mesh for gfx in "Edit Object" actuator act illogically + other booleans that are flipped
Now I think we are all good. We still have a few actuators that were using TOGN before but that I didn't make as negative_boolean.

All fixed now:
- parent actuator
- edit object actuator
- action actuator
- shape actuator

10 years agoFix for [#27461] Particle Instance modifier doesn't work correctly with Hair Dynamics.
Janne Karhu [Fri, 3 Jun 2011 05:51:39 +0000 (05:51 +0000)]
Fix for [#27461] Particle Instance modifier doesn't work correctly with Hair Dynamics.
* Wrong matrix used for dynamic hair.

10 years agodisable python/string enum duplication from last commit because the array of duplicat...
Campbell Barton [Fri, 3 Jun 2011 04:39:18 +0000 (04:39 +0000)]
disable python/string enum duplication from last commit because the array of duplicated strings can be freed and the pointers to the strings referenced still, the problem with python freeing strings that RNA references remains.

10 years agowhen making the C/RNA copy of the python enum, duplicate all strings since theres...
Campbell Barton [Fri, 3 Jun 2011 04:21:41 +0000 (04:21 +0000)]
when making the C/RNA copy of the python enum, duplicate all strings since theres no guarantee python wont free them immediately after, though in practice this isn't so common.

10 years agopre-allocate the array when converting py/rna enums, also fix for memory leak with...
Campbell Barton [Fri, 3 Jun 2011 03:19:22 +0000 (03:19 +0000)]
pre-allocate the array when converting py/rna enums, also fix for memory leak with bad values.

10 years agoFix for [#27562] audaspace not playing files in blenderplayer
Joerg Mueller [Thu, 2 Jun 2011 23:25:38 +0000 (23:25 +0000)]
Fix for [#27562] audaspace not playing files in blenderplayer

blenderplayer wasn't initialising ffmpeg

This might also fix [#27558] GE Sound works in Blender but not in runtimes

10 years agoQuiet warnings for picky compilers.
Campbell Barton [Thu, 2 Jun 2011 23:10:05 +0000 (23:10 +0000)]
Quiet warnings for picky compilers.

10 years agoFix related to #27309: group nodes with a linked datablock that was missing would...
Brecht Van Lommel [Thu, 2 Jun 2011 17:34:01 +0000 (17:34 +0000)]
Fix related to #27309: group nodes with a linked datablock that was missing would crash.

10 years agoFix #27241: crash with point density texture when using particle age/velocity
Brecht Van Lommel [Thu, 2 Jun 2011 16:59:12 +0000 (16:59 +0000)]
Fix #27241: crash with point density texture when using particle age/velocity
fallof for object vertices.

10 years agoaddons now show expanded list again (since Brecht's commit now makes it fast)
Campbell Barton [Thu, 2 Jun 2011 15:21:47 +0000 (15:21 +0000)]
addons now show expanded list again (since Brecht's commit now makes it fast)
also add utility function for getting cleaned, unique names from python: bpy_extras.io_utils.unique_name(...)

10 years agoUI: fix two issues with expanded enum property buttons:
Brecht Van Lommel [Thu, 2 Jun 2011 14:18:51 +0000 (14:18 +0000)]
UI: fix two issues with expanded enum property buttons:
* they were too slow for dynamic python enums, calling the callback
  to list the items for each button, to get a tooltip
* enum tooltips sometimes were showing the same description twice

10 years agofix for [#27410] Manual save kills actual .blend file if disk space is low
Andrea Weikert [Thu, 2 Jun 2011 12:44:59 +0000 (12:44 +0000)]
fix for [#27410] Manual save kills actual .blend file if disk space is low
- moved do_history into WM_write_file after successful write of .blend@ temporary file
- Added new file flag, to avoid writing history on writing the startup.blend, autosave files and undo.

Thanks Campbell, Brecht for review!

10 years agocommitted this by mistake.
Campbell Barton [Thu, 2 Jun 2011 09:04:07 +0000 (09:04 +0000)]
committed this by mistake.

10 years agofix [#27557] Linked object (camera) should not be able to set position by using camer...
Campbell Barton [Thu, 2 Jun 2011 08:55:26 +0000 (08:55 +0000)]
fix [#27557] Linked object (camera) should not be able to set position by using camera to view operator

10 years agofix [#27553] Weird resulsts when animating opacity on (color) strip
Campbell Barton [Thu, 2 Jun 2011 08:45:28 +0000 (08:45 +0000)]
fix [#27553] Weird resulsts when animating opacity on (color) strip

10 years agomathutils support for color arithmetic, also some minor whitespace edits.
Campbell Barton [Thu, 2 Jun 2011 08:29:16 +0000 (08:29 +0000)]
mathutils support for color arithmetic, also some minor whitespace edits.

10 years agoFix #27539: Sculpt data is lost after editing base mesh
Sergey Sharybin [Thu, 2 Jun 2011 04:58:27 +0000 (04:58 +0000)]
Fix #27539: Sculpt data is lost after editing base mesh

Face's totdisp was set to correct value, but memory hasn't been
allocated for disps. Handle this in multires_topology_changed(),
so the whole MDISPS layer wouldn't be totally re-allocated when
applying displacement.

10 years agoupdate to glew 1.6 from 1.5.8
Campbell Barton [Thu, 2 Jun 2011 00:05:54 +0000 (00:05 +0000)]
update to glew 1.6 from 1.5.8

10 years agouninitialized variable was used when ensuring mirrored vertex groups.
Campbell Barton [Wed, 1 Jun 2011 23:55:49 +0000 (23:55 +0000)]
uninitialized variable was used when ensuring mirrored vertex groups.

10 years agoFix #27550: texture node editor header was still showing texture datablock
Brecht Van Lommel [Wed, 1 Jun 2011 16:17:38 +0000 (16:17 +0000)]
Fix #27550: texture node editor header was still showing texture datablock
selector even if there is no active texture slot or node, now it's disabled
in that case.

10 years agoUI: template_ID now takes into account if the property is editable.
Brecht Van Lommel [Wed, 1 Jun 2011 16:13:48 +0000 (16:13 +0000)]
UI: template_ID now takes into account if the property is editable.

10 years agoFix #27490: export key configuration gave error when trying to export
Brecht Van Lommel [Wed, 1 Jun 2011 14:35:14 +0000 (14:35 +0000)]
Fix #27490: export key configuration gave error when trying to export
properties from an unknown (e.g. removed) operator.

10 years agoFix #27481: windows uninstaller could remove files unrelated to blender
Brecht Van Lommel [Wed, 1 Jun 2011 13:13:55 +0000 (13:13 +0000)]
Fix #27481: windows uninstaller could remove files unrelated to blender
when installing to a folder that already existed. Now the uninstaller
will remove only the files it has installed, and leave any other files
in the installation directory intact.

10 years agoFix #27541: f-curve generator modifier file read missed endian switch,
Brecht Van Lommel [Wed, 1 Jun 2011 13:10:37 +0000 (13:10 +0000)]
Fix #27541: f-curve generator modifier file read missed endian switch,
found by Guillaume Roguez.

10 years agoMaterial nodes were checking the nodestack->hasinput flag to determin whether the...
Lukas Toenne [Tue, 31 May 2011 17:54:48 +0000 (17:54 +0000)]
Material nodes were checking the nodestack->hasinput flag to determin whether the original material settings or the node input data would be used. This causes trouble when the input data is not the direct input constant of the node nor a direct link in the same tree (i.e. a group socket). Just checks if sockets are linked now (not very nice, but not hackier than the rest of that node).

Fixes bug #27511.