blender.git
8 years agomade most variables which are only used in a single file and not defined in header...
Campbell Barton [Mon, 14 Feb 2011 17:55:27 +0000 (17:55 +0000)]
made most variables which are only used in a single file and not defined in header static for blenlib, blenkernel and editors.

8 years agoFix #26082: Fkey in a curve witch was empty before
Sergey Sharybin [Mon, 14 Feb 2011 17:17:05 +0000 (17:17 +0000)]
Fix #26082: Fkey in a curve witch was empty before

Stupid error in own previous commit to addvert_Nurb -- empty spline
had been added to spline list.

8 years agoBug fix #26021
Ton Roosendaal [Mon, 14 Feb 2011 17:09:02 +0000 (17:09 +0000)]
Bug fix #26021

Very nasty UI code issue: since every button is re-defined on a
redraw, having UI redraws while using a button was not possible.

This was solved long ago by copying over data from previous button.

However, this fails when buttons have callbacks with its own (or
a parent button) pointer.

This bug reporter found crashes in draw-overlap UI mode, this
draws entire UI over for every menu redraws, making previous button
pointers invalid. (for triple buffer, the UI is not redrawn, only
the menus).

In general: all systems falling back to old swapbuffers would have
suffered some instability because of this.

Fix is that now the old button gets lifted out from the previous
list and inserted in the new list. Works fine, but needs some tests!

Also in this commit: TIFF endian switching not needed for 16 bits tiff.

8 years agoPrevious commit to small optimization of sculpting broke smooth and layer
Sergey Sharybin [Mon, 14 Feb 2011 16:54:52 +0000 (16:54 +0000)]
Previous commit to small optimization of sculpting broke smooth and layer
brushes. They aren't using proxies, so deformation wouldn't be propagated
in sculpt_combine_proxies().

So, maye idea of getting rid of "extra" memory allocaiton/disposing was not
such cool due to it lead to such exception ways?

8 years agoFirst modifiers with deformMatrices callback used to be applied twice when
Sergey Sharybin [Mon, 14 Feb 2011 16:06:15 +0000 (16:06 +0000)]
First modifiers with deformMatrices callback used to be applied twice when
building crazytspace. Not sure why this worked.

8 years agocomments for how py-rna calls api new classes. small speedup for StructRNA.__new__...
Campbell Barton [Mon, 14 Feb 2011 11:30:35 +0000 (11:30 +0000)]
comments for how py-rna calls api new classes. small speedup for StructRNA.__new__(...) used for creating new classes and corrected exception type.

8 years agoimprove py/rna exception messages.
Campbell Barton [Mon, 14 Feb 2011 08:14:52 +0000 (08:14 +0000)]
improve py/rna exception messages.

8 years agopy rna api: turn class.is_register into a class property rather then a class method.
Campbell Barton [Mon, 14 Feb 2011 07:26:07 +0000 (07:26 +0000)]
py rna api: turn class.is_register into a class property rather then a class method.
eg:

if MySybclass.is_registered:
    ...

8 years agoconvenience targets for makefile
Campbell Barton [Mon, 14 Feb 2011 06:15:23 +0000 (06:15 +0000)]
convenience targets for makefile
clean, test, package_debian, package_pacman

8 years agoRevert incorrect fix for 26062 made in svn rev34828.
Sergey Sharybin [Mon, 14 Feb 2011 06:04:40 +0000 (06:04 +0000)]
Revert incorrect fix for 26062 made in svn rev34828.

8 years agoSVN maintenance.
Guillermo S. Romero [Mon, 14 Feb 2011 04:47:55 +0000 (04:47 +0000)]
SVN maintenance.

8 years agopython api renaming and added headers for some files which didnt have one, no functio...
Campbell Barton [Mon, 14 Feb 2011 04:15:25 +0000 (04:15 +0000)]
python api renaming and added headers for some files which didnt have one, no functionality change.

8 years agoBone Colour Sets (theme ones) can now be edited from the User
Joshua Leung [Mon, 14 Feb 2011 03:43:28 +0000 (03:43 +0000)]
Bone Colour Sets (theme ones) can now be edited from the User
Preferences UI again

8 years agoActive spline number should also be stored/restored by undo stack.
Sergey Sharybin [Mon, 14 Feb 2011 03:36:15 +0000 (03:36 +0000)]
Active spline number should also be stored/restored by undo stack.
It could point to nowhere otherwise.

8 years agomisc small changes:
Campbell Barton [Mon, 14 Feb 2011 03:15:55 +0000 (03:15 +0000)]
misc small changes:
- rename rna collection structs Main prefix to BlendData: eg, MainObjects --> BlendDataObjects
- printing python collection now prints its type (when available)
- renamed shadowed vars in bpy_rna.c.
- when making functions static I also made debugging/test functions static, reverse and add definitions to headers instead.

8 years agoForgot NLA Editor support for this...
Joshua Leung [Mon, 14 Feb 2011 03:04:59 +0000 (03:04 +0000)]
Forgot NLA Editor support for this...

8 years agoGraph Editor part of the changes in the previous commit...
Joshua Leung [Mon, 14 Feb 2011 02:50:52 +0000 (02:50 +0000)]
Graph Editor part of the changes in the previous commit...

8 years agoDopeSheet: Add menu entries and hotkeys to select all keyframes
Joshua Leung [Mon, 14 Feb 2011 02:30:33 +0000 (02:30 +0000)]
DopeSheet: Add menu entries and hotkeys to select all keyframes
left/right to current frame in dope sheet

This commit separates out this selection functionality out of the
click-selection operator into a separate operator, so that hotkeys and
menu entries can be assigned to it.

This is based on an idea+patch (#23738) submitted by Torsten Rupp
(rupp), though I've ultimately decided not to go with the suggested
implementation as I don't think this fits that well under the "column"
select operator.

Todo: Graph Editor support will be coming shortly...

8 years agofix for string copy error in own recent commit
Campbell Barton [Mon, 14 Feb 2011 01:31:44 +0000 (01:31 +0000)]
fix for string copy error in own recent commit

8 years agoFix #26062: build_debian.sh gives unappropriate deb version
Sergey Sharybin [Sun, 13 Feb 2011 19:47:57 +0000 (19:47 +0000)]
Fix #26062: build_debian.sh gives unappropriate deb version

Added subverison number to debian package version. Quick tests run ok,
but haven't checked if deb version comparation also goes fine.

8 years agoFix #26072: ctrl+LMB on an empty curve make Blender crash
Sergey Sharybin [Sun, 13 Feb 2011 19:04:01 +0000 (19:04 +0000)]
Fix #26072: ctrl+LMB on an empty curve make Blender crash

Crash was caused by keeping active segment index even when this
segment had been deleted. Fixed this and also changed behaviour
of creating new CV for case nothing is selected: new segment with
BEZIER type would be created.

8 years agowarning cleanup.
Campbell Barton [Sun, 13 Feb 2011 15:02:21 +0000 (15:02 +0000)]
warning cleanup.
- fix mistake with grease pencil UI (&& was intended but & used).
- use (void) rather then () across _all_ blenders code.
- a few minor edits, don't shadow stack variables in roll calculation & avoid running memset() for VBO vertex map.

8 years agoPatch 26068
Ton Roosendaal [Sun, 13 Feb 2011 14:55:39 +0000 (14:55 +0000)]
Patch 26068

Fast-gauss node didn't respond to socket-input "Size" factor.
Thanks Philipp Oeser for the fix!

8 years agomany functions in blender are not marked static but should be.
Campbell Barton [Sun, 13 Feb 2011 14:16:36 +0000 (14:16 +0000)]
many functions in blender are not marked static but should be.
most local modifier,GPU,ImBuf and Interface functions are now static.

also fixed an error were the fluid modifier definition and the header didnt have the same number of args.

8 years agoBugfix #26066
Ton Roosendaal [Sun, 13 Feb 2011 13:55:41 +0000 (13:55 +0000)]
Bugfix #26066

Shader node "Mapping" had buttons assuming it stored radians, drawing
the values converted wrongly. In this case the storage has degrees...

8 years agoSmall addition to particle grid distribution:
Janne Karhu [Sun, 13 Feb 2011 13:50:19 +0000 (13:50 +0000)]
Small addition to particle grid distribution:
* New option to distribute particles in a hexagonal grid.
* This is much more stable for fluids than normal grid distribution and looks quite nice otherwise too :)
* Also some small scale code cleanup of grid distribution code.

8 years agocorrected error from commit r34810.
Campbell Barton [Sun, 13 Feb 2011 13:07:12 +0000 (13:07 +0000)]
corrected error from commit r34810.

8 years agofix for error building.
Campbell Barton [Sun, 13 Feb 2011 12:50:40 +0000 (12:50 +0000)]
fix for error building.

8 years agoSome more fixes for particle textures:
Janne Karhu [Sun, 13 Feb 2011 12:35:26 +0000 (12:35 +0000)]
Some more fixes for particle textures:
* Moving a texture slot didn't keep the moved slot active.
* Copy & paste for particle textures didn't work.
* New textures weren't freed properly.

8 years agoFix for [#26053] Blender Crash with Particules Textures
Janne Karhu [Sun, 13 Feb 2011 11:45:04 +0000 (11:45 +0000)]
Fix for [#26053] Blender Crash with Particules Textures
* Particle textures weren't handled properly on texture slot move operations.

8 years agoAdded an operator warning for missing material & texture in response to [#26051]...
Janne Karhu [Sun, 13 Feb 2011 11:32:47 +0000 (11:32 +0000)]
Added an operator warning for missing material & texture in response to [#26051] "Noise" not working.

8 years agofix for warnings from Sparse static source code checker, mostly BKE/BLI and python...
Campbell Barton [Sun, 13 Feb 2011 10:52:18 +0000 (10:52 +0000)]
fix for warnings from Sparse static source code checker, mostly BKE/BLI and python functions.
- use NULL rather then 0 where possible (makes code & function calls more readable IMHO).
- set static variables and functions (exposed some unused vars/funcs).
- use func(void) rather then func() for definitions.

8 years agoRelated to #26061: Camera does not appear selected in outliner when it is
Sergey Sharybin [Sun, 13 Feb 2011 10:34:24 +0000 (10:34 +0000)]
Related to #26061: Camera does not appear selected in outliner when it is

Draw higlighting circle for active camera in outliner

8 years agoFix #26064: blenderplayer is broken
Sergey Sharybin [Sun, 13 Feb 2011 10:28:40 +0000 (10:28 +0000)]
Fix #26064: blenderplayer is broken

This changes were forgotten in svn rev34810. Should work fine now.

8 years agoFix #26059: select_vertex_path fails when vertices aren't selected 1 by 1 in gui
Sergey Sharybin [Sun, 13 Feb 2011 10:25:12 +0000 (10:25 +0000)]
Fix #26059: select_vertex_path fails when vertices aren't selected 1 by 1 in gui

Cicrcle and border selection doesn't add entry to EditSelection. Use cycle
through vertices rather than EditSelection stack to find two selected vertices.

No slowdown for case two vertices are selected (use this cycle to clear temporary
flag too), minor slowdown for unsupported selections.

8 years agoReverting part of 34810
Joshua Leung [Sun, 13 Feb 2011 07:39:43 +0000 (07:39 +0000)]
Reverting part of 34810

The changes here were breaking old rigs, for example the right eyeball
in the Sintel rig (which uses the Mirror Modifier and its vertex-group
mirroring functionality)

8 years agoFixing compiling on windows
Joshua Leung [Sun, 13 Feb 2011 06:19:15 +0000 (06:19 +0000)]
Fixing compiling on windows

8 years agoenforce string limits (reported by pedantic checking tools & some developers).
Campbell Barton [Sun, 13 Feb 2011 03:21:27 +0000 (03:21 +0000)]
enforce string limits (reported by pedantic checking tools & some developers).
mostly replace strcpy with BLI_strncpy and multiple strcat's with a BLI_snprintf().
also fix possible crash if CWD isnt available.

8 years agoremove unused var
Campbell Barton [Sun, 13 Feb 2011 02:55:23 +0000 (02:55 +0000)]
remove unused var

8 years agowrong length used with strncmp when comparing RNA path.
Campbell Barton [Sun, 13 Feb 2011 01:59:16 +0000 (01:59 +0000)]
wrong length used with strncmp when comparing RNA path.

8 years agoSmall update for billboards:
Janne Karhu [Sat, 12 Feb 2011 23:25:03 +0000 (23:25 +0000)]
Small update for billboards:
* Renamed the old split uv's animate option "time" to "age" and added a new option to change the used split frame by frame. These are good changes were suggested/implied by Hannu Hoffren over 3 years ago in his tutorial video! (oh my how time flies)
* Also cleaned up the billboard ui quite a bit. For example now the uv channels can be properly chosen from the existing channels.

8 years agoFix for [#25857] create_dupli_list incorrect behaviour with particle systems
Janne Karhu [Sat, 12 Feb 2011 21:54:50 +0000 (21:54 +0000)]
Fix for [#25857] create_dupli_list incorrect behaviour with particle systems
* Particle duplis are now always created with render percentage if G.rendering is set.
* This is not yet a perfect solution (hair for example won't yet work correctly), but
  it's good to have even partial functionality here until a proper way to handle this
  is implemented.

8 years agoSmall particle effectors update:
Janne Karhu [Sat, 12 Feb 2011 17:54:24 +0000 (17:54 +0000)]
Small particle effectors update:
* Greetings from farsthary: particle rotation is now taken into account for particle effector direction.
** This gives all kinds of new possibilities as he shows in his blog http://farsthary.wordpress.com/2011/02/08/vortex-particle-simple-tut/.
**The only modification I made to his patch was to use the actual rotated particle direction as the effector direction as this defaults to the particle velocity vector, so no actual new options are needed.
* I also added an "effector amount" setting for particle effectors so that only a part of the particles can be considered as effectors. This makes it possible to create simple "farsthary vortexes" with only one particle system.
* Also some tiny reorganization of the falloff min/max values for a nicer ui.

8 years agoSculpting on deformed mesh
Sergey Sharybin [Sat, 12 Feb 2011 17:51:02 +0000 (17:51 +0000)]
Sculpting on deformed mesh
==========================

Removed limitation of armatured-only objects for sculpting -- now all
deformation modifiers are allowed in sculpt mode. Use crazyspace corrections
like from transformation modules was used to support all deformation modifiers.

Internal change: all crazyspace-related functions were noved to crazyspace.c

P.S. Brush could make quite unexpected deformation for meshes which are
     deformed in specified way. Got patch for this and discussing with Brecht
 if it's really needed or maybe it could be done in better way.

8 years agoSave one memory block allocation/disposing when propagating changes from
Sergey Sharybin [Sat, 12 Feb 2011 17:28:37 +0000 (17:28 +0000)]
Save one memory block allocation/disposing when propagating changes from
deformed PBVH to the base mesh.

It's not real bottleneck, but crazyspace corrections looks nicer now.
Real bottleneck is normals re-calculation, which calls plenty of
fsqrt's. We could avoid this for some modifiers (which don't use
normals), but such checking would make code less controllable.

8 years agofix for more warnings.
Campbell Barton [Sat, 12 Feb 2011 16:54:24 +0000 (16:54 +0000)]
fix for more warnings.
- modifier code was using sizeof() without knowing the sizeof the array when clearing the modifier type array.
- use BLI_snprintf rather then sprintf where the size of the string is known.
- particle drawing code kept a reference to stack float values (not a problem at the moment but would crash if accessed later).

8 years agoWarning fix to my previous commit. Thanks to nazg-gul for noticing!
Janne Karhu [Sat, 12 Feb 2011 16:06:27 +0000 (16:06 +0000)]
Warning fix to my previous commit. Thanks to nazg-gul for noticing!

8 years agoFixing a recounting bug so KX_Scene.pre_draw.append() and KX_Scene.post_draw.append...
Mitchell Stokes [Sat, 12 Feb 2011 15:44:09 +0000 (15:44 +0000)]
Fixing a recounting bug so KX_Scene.pre_draw.append() and KX_Scene.post_draw.append() work.

8 years agoParticles todo item: particle textures
Janne Karhu [Sat, 12 Feb 2011 14:38:34 +0000 (14:38 +0000)]
Particles todo item: particle textures
* Effecting particle properties with textures was possible in 2.49,
  but not in 2.5 anymore.
* Now particles have their own textures (available in texture panel
  for objects with particle systems), which are totally separate from
  the material textures.
* Currently a basic set of particle properties is available for
  texture control. Some others could still be added, but the whole
  system is not intended as an "change anything with a texture" as
  this kind of functionality will be provided with node particles in
  the future much better.
* Combined with the previously added "particle texture coordinates"
  this new functionality also solves the problem of animating particle
  properties through the particle lifetime nicely.
* Currently the textures only use the intensity of the texture in
  "multiply" blending mode, so in order for the textures to effect
  a particle parameter there has to be a non-zero value defined for
  the parameter in the particle settings. Other blend modes can be
  added later if they're considered useful enough.

8 years ago- fix leak on STL loading if realloc fails.
Campbell Barton [Sat, 12 Feb 2011 14:25:54 +0000 (14:25 +0000)]
- fix leak on STL loading if realloc fails.
- transform code was using sprintf reading and writing the same string (undefined behavior).
- softbody had unneeded NULL check.

8 years agofix for uninitialized value in BLI_path_cwd() if PWD wasn't defined and the CWD was...
Campbell Barton [Sat, 12 Feb 2011 10:37:37 +0000 (10:37 +0000)]
fix for uninitialized value in BLI_path_cwd() if PWD wasn't defined and the CWD was longer then 160.

8 years agoaccess past array bounds in layerInterp_mdisps, also make some vars const.
Campbell Barton [Sat, 12 Feb 2011 10:18:21 +0000 (10:18 +0000)]
access past array bounds in layerInterp_mdisps, also make some vars const.

8 years agofix for possible (but unlikely) problem with strncpy not adding \0 and then extending...
Campbell Barton [Sat, 12 Feb 2011 09:58:28 +0000 (09:58 +0000)]
fix for possible (but unlikely) problem with strncpy not adding \0 and then extending the string with strcat. use BLI_snprintf instead.

8 years ago- resource leak in pointcache, opendir without closedir()
Campbell Barton [Sat, 12 Feb 2011 09:09:52 +0000 (09:09 +0000)]
- resource leak in pointcache, opendir without closedir()
- reading pointcache was using an incorrect, always NULL variable.
- commented NDof code, was giving warnings and isnt used now.

8 years ago- move keyingsets_utils.py into modules.
Campbell Barton [Sat, 12 Feb 2011 08:12:00 +0000 (08:12 +0000)]
- move keyingsets_utils.py into modules.
- add gplv2 header
- define __all__ so when importing '*' it wont being in locally defined vars.

8 years agoupdate templates for registration changes
Campbell Barton [Sat, 12 Feb 2011 08:04:32 +0000 (08:04 +0000)]
update templates for registration changes

8 years agofix for building with opencollada 833 on linux.
Campbell Barton [Sat, 12 Feb 2011 06:25:04 +0000 (06:25 +0000)]
fix for building with opencollada 833 on linux.

8 years agoquiet some clang warnings.
Campbell Barton [Sat, 12 Feb 2011 05:12:26 +0000 (05:12 +0000)]
quiet some clang warnings.

8 years agorender stats_background() was giving clang warning about unused argument and wasn...
Campbell Barton [Sat, 12 Feb 2011 01:02:21 +0000 (01:02 +0000)]
render stats_background() was giving clang warning about unused argument and wasn't checking for buffer overrun (though this would be very unlikely).
write to the stdout directly rather then building a string and writing that. (no functional change).

8 years agoSVN maintenance.
Guillermo S. Romero [Fri, 11 Feb 2011 19:36:58 +0000 (19:36 +0000)]
SVN maintenance.

8 years agoBugfix #26021
Ton Roosendaal [Fri, 11 Feb 2011 18:29:52 +0000 (18:29 +0000)]
Bugfix #26021

On certain buttons, and only when not in triple buffer, pressing
RMB "Add shortcut" crashed Blender. NULL check missing.

8 years agoFix #26039: Relative Shapkeys have wrong coordinates after inserting vertices
Sergey Sharybin [Fri, 11 Feb 2011 17:56:25 +0000 (17:56 +0000)]
Fix #26039: Relative Shapkeys have wrong coordinates after inserting vertices

There was invalid memory access for newly created vertices.
Added checking of keyindex value when calculating verticies offsets.

8 years agoFix #26040: Crash converting curve to mesh
Sergey Sharybin [Fri, 11 Feb 2011 17:43:56 +0000 (17:43 +0000)]
Fix #26040: Crash converting curve to mesh

Really stupid mistake :)

8 years agoMade some function from DerivedMesh.c be avaliable from other modules.
Sergey Sharybin [Fri, 11 Feb 2011 15:15:35 +0000 (15:15 +0000)]
Made some function from DerivedMesh.c be avaliable from other modules.
Some naming changes to make naming more uniform. No functional changes.

It's necessery for further crazyspace changes and improvenments.

8 years agoBug fix for problem 2 in [#25973] Bake End Frame Not Configurable
Janne Karhu [Fri, 11 Feb 2011 14:59:19 +0000 (14:59 +0000)]
Bug fix for problem 2 in [#25973] Bake End Frame Not Configurable
* External caches didn't load for smoke straight away. Smoke caches store all necessary info in every file, so no need to try to look for an info file.

8 years agopatch [#25978] mathutils fixes for bpy_types.py and vertexpaint_dirt.py
Campbell Barton [Fri, 11 Feb 2011 12:30:17 +0000 (12:30 +0000)]
patch [#25978] mathutils fixes for bpy_types.py and vertexpaint_dirt.py
from Filiciss Muhgue (filiciss)

8 years agopatch [#26030] Debian spec fix (Patch for #26028)
Campbell Barton [Fri, 11 Feb 2011 10:29:47 +0000 (10:29 +0000)]
patch [#26030] Debian spec fix (Patch for #26028)
from Shinsuke Irie (irie)

8 years agoRemoved the internal_select parameter from ntreeCopyTree. This was used just in one...
Lukas Toenne [Fri, 11 Feb 2011 09:37:58 +0000 (09:37 +0000)]
Removed the internal_select parameter from ntreeCopyTree. This was used just in one place when duplicating nodes, which is not an actual copying of the tree. The node duplicate operator now copies selected nodes itself.

8 years agoupdate pacman spec for newer python and match naming convention to debian spec.
Campbell Barton [Fri, 11 Feb 2011 09:28:11 +0000 (09:28 +0000)]
update pacman spec for newer python and match naming convention to debian spec.
also pre-compile python modiles.

8 years agoMade group label callback function static.
Lukas Toenne [Fri, 11 Feb 2011 07:46:06 +0000 (07:46 +0000)]
Made group label callback function static.

8 years agoadd torus script wasnt registering.
Campbell Barton [Fri, 11 Feb 2011 03:42:36 +0000 (03:42 +0000)]
add torus script wasnt registering.

8 years agocls.is_registered() class method for python subclasses of internal types.
Campbell Barton [Fri, 11 Feb 2011 02:40:14 +0000 (02:40 +0000)]
cls.is_registered() class method for python subclasses of internal types.
Synonymous with ('bl_rna' in cls.__dict__)

8 years agobpy.utils.register_module() generator could go into eternal loop.
Campbell Barton [Fri, 11 Feb 2011 01:27:00 +0000 (01:27 +0000)]
bpy.utils.register_module() generator could go into eternal loop.

8 years agoUI functions added to existing UI classes (operators adding their own menus for eg),
Campbell Barton [Fri, 11 Feb 2011 01:12:01 +0000 (01:12 +0000)]
UI functions added to existing UI classes (operators adding their own menus for eg),
would stop the entire menu from drawing if they raised an exception.

now print the exception and continue.

Also added a verbose argument for bpy.utils.(un)register_module() to help test whats being registered.

8 years agouse weak references for the internal metaclass typemap,
Campbell Barton [Fri, 11 Feb 2011 00:39:07 +0000 (00:39 +0000)]
use weak references for the internal metaclass typemap,
this should help with blender leaking memory with python classes though the bug is still not fixed.

8 years agominor python register changes.
Campbell Barton [Fri, 11 Feb 2011 00:11:17 +0000 (00:11 +0000)]
minor python register changes.
- KeyingSetInfo classes are now collected like Panels, Operators etc so bpy.utils.register_module() can be used.
- move bpy.types.register() to bpy.utils.register_class

8 years agoBGE: frame start/end in action/fcurves/shapekey to support floats
Dalai Felinto [Fri, 11 Feb 2011 00:03:26 +0000 (00:03 +0000)]
BGE: frame start/end in action/fcurves/shapekey to support floats
after discussion over the mailing-list it seems that it really makes no sense to restrict that. Specially since we have the "Property" playback mode that usually will be a float.

Since there is no need for do_version or whatoever I don't see a problem. Any Thoughts? Maube to allow it only through the Python API?

8 years agopatch [#25809] Auto-Registration as utility function.
Campbell Barton [Thu, 10 Feb 2011 23:48:22 +0000 (23:48 +0000)]
patch [#25809] Auto-Registration as utility function.
This removes auto-registration, committed by Martin r30961.
Realize this is a contentious topic but Brecht and myself both would rather opt-in registration.

TODO:
- addons need updating.
- class list will be modified to use weakrefs (should have been done for existing system too).
- will move bpy.types.(un)register functions into bpy.utils.(un)register_class, currently including these functions in a type list is internally ugly, scripts which loop over types also need to check for these.

8 years agoDifferent method for blur node aspect correction. Now the user can still set differen...
Lukas Toenne [Thu, 10 Feb 2011 20:54:02 +0000 (20:54 +0000)]
Different method for blur node aspect correction. Now the user can still set different sizes for x/y blurring in relative mode, but choose to use aspect correction on either of the axes.

8 years agoMore options for the blur node filter size. This can now be pixel based or relative...
Lukas Toenne [Thu, 10 Feb 2011 18:54:49 +0000 (18:54 +0000)]
More options for the blur node filter size. This can now be pixel based or relative to both axes or just either width or height.

8 years agoBugfix #26013
Ton Roosendaal [Thu, 10 Feb 2011 17:23:00 +0000 (17:23 +0000)]
Bugfix #26013

Good discovery this one.
It appeared that "pose mode" changes were not registered in our undo system.
That way the first operator you try to redo after exit posemode fails.

8 years agoBugfix #26001
Ton Roosendaal [Thu, 10 Feb 2011 15:47:55 +0000 (15:47 +0000)]
Bugfix #26001

Adding a byte rect to float ImBuf was always freeing the mipmap levels.
Removed this convention since it crashes renders + image texture draw.

Proper ownership handling of ImBuf is high on the wish list :)

8 years agofix for crash with GLSL material when image couldn't be loaded.
Campbell Barton [Thu, 10 Feb 2011 14:59:17 +0000 (14:59 +0000)]
fix for crash with GLSL material when image couldn't be loaded.
also quiet pep8 warnings.

8 years agomesh validation remove duplicate faces didn't always work, now it _should_ all work...
Campbell Barton [Thu, 10 Feb 2011 14:13:13 +0000 (14:13 +0000)]
mesh validation remove duplicate faces didn't always work, now it _should_ all work correctly.

8 years agomesh validation: bugfix for removing doubles, another fix coming...
Campbell Barton [Thu, 10 Feb 2011 12:34:52 +0000 (12:34 +0000)]
mesh validation: bugfix for removing doubles, another fix coming...

8 years agoBugfix [#26004] compositor: backdrop zoom factor too small
Joshua Leung [Thu, 10 Feb 2011 10:24:05 +0000 (10:24 +0000)]
Bugfix [#26004] compositor: backdrop zoom factor too small

The backdrop zoom factor for new node-editor instances was not set
(i.e. was default initialised to 0). Now, this gets set to 1.0.

Also, set the property default in RNA to match this.

8 years agoBugfix [#26002] Outliner Visible layers + Single object & data = broke
Joshua Leung [Thu, 10 Feb 2011 10:14:12 +0000 (10:14 +0000)]
Bugfix [#26002] Outliner Visible layers + Single object & data = broke
conections

It seems that some of the Outliner hacks used while building the tree
was causing problems, as Make Single User (and potentially other code
working with ID-data, specifically with the "newid" value there) was
making use of the variable used there for other purposes, leading to
memory corruption.

This bug also occurred in 2.4x, though when I tested there, it crashed
immediately.

Ton, you may want to double-check this bug!

8 years agoSmall consistency fixups
Joshua Leung [Thu, 10 Feb 2011 09:39:55 +0000 (09:39 +0000)]
Small consistency fixups

8 years agomesh.validate() now returns True if any corrections were made.
Campbell Barton [Thu, 10 Feb 2011 09:29:31 +0000 (09:29 +0000)]
mesh.validate() now returns True if any corrections were made.
tested that correcting invalid meshes works by generating random meshes and checking that only the first call to mesh.validate() makes changes.

found 2 bugs in mesh validation.
- face sorting array wasn't assigned correct indices.
- removing invalid edges used wrong comparison.

8 years agoscript to build debian packages directly from svn, using blender version and svn...
Campbell Barton [Thu, 10 Feb 2011 07:22:56 +0000 (07:22 +0000)]
script to build debian packages directly from svn, using blender version and svn rev for package name.

8 years agodebian package spec [#26007] Debian spec
Campbell Barton [Thu, 10 Feb 2011 06:11:16 +0000 (06:11 +0000)]
debian package spec [#26007] Debian spec
by Dan Eicher (dna)

8 years agoBugfix [#25831] Sorting channels broken
Joshua Leung [Thu, 10 Feb 2011 05:15:05 +0000 (05:15 +0000)]
Bugfix [#25831] Sorting channels broken

Recoded animation channel sorting code. In particular, the old code
didn't handle "islands" of selected items well (i.e. a chain of
several connected items in a row), with some of these cases having
unpredictable results.

There were also some bugs in the way some of the rearranging methods
worked, allowing some invalid operations to be performed. Some of
these probably triggered errors such as some channels getting stuck,
and so on.

8 years agofix [#26003] Twice applied modifier with Convert to mesh with several multi-user...
Campbell Barton [Thu, 10 Feb 2011 04:48:49 +0000 (04:48 +0000)]
fix [#26003] Twice applied modifier with Convert to mesh with several multi-user objects
convert_exec could do with a re-write, getting quite confusing.

update md5's for ctest results and some renaming in mesh_validate code.

8 years agosmall fix so older files are loaded with merge on in the mirror modifiers
Michael Fox [Thu, 10 Feb 2011 00:44:26 +0000 (00:44 +0000)]
small fix so older files are loaded with merge on in the mirror modifiers

8 years agoSet default for merge mirror to ON
Daniel Salazar [Thu, 10 Feb 2011 00:25:00 +0000 (00:25 +0000)]
Set default for merge mirror to ON

8 years agosmall feature request from zanqdo, merging in the mirror modifier is now optional...
Michael Fox [Thu, 10 Feb 2011 00:05:03 +0000 (00:05 +0000)]
small feature request from zanqdo, merging in the mirror modifier is now optional, simply turning town the merge limit just simply do anything, and merging is off by default as this seems more logical behaviour

8 years agoUpdate mesh normals when undoing sculpt stroke to prevent shading
Sergey Sharybin [Wed, 9 Feb 2011 15:38:49 +0000 (15:38 +0000)]
Update mesh normals when undoing sculpt stroke to prevent shading
artifacts in some cases (enter edit mode/disabling modifiers after undo)

8 years agofix [#25994] Meshes with no vertices gets NaN location on setting origin to geometry
Campbell Barton [Wed, 9 Feb 2011 15:32:39 +0000 (15:32 +0000)]
fix [#25994] Meshes with no vertices gets NaN location on setting origin to geometry

8 years agoBKE_mesh_validate() now corrects invalid meshes (optionally), added access for python...
Campbell Barton [Wed, 9 Feb 2011 15:13:20 +0000 (15:13 +0000)]
BKE_mesh_validate() now corrects invalid meshes (optionally), added access for python so it can correct for bad imported geometry - mesh.validate().

8 years agoRestoring the old behavior of switching texture context based on active tab:
Janne Karhu [Wed, 9 Feb 2011 11:03:11 +0000 (11:03 +0000)]
Restoring the old behavior of switching texture context based on active tab:
* Once again switching to texture panel from material, world or lamp data tab sets the texture context automatically to the "parent context".