Commit Graph

25062 Commits

Author SHA1 Message Date
Sergey Sharybin
bf1bee5d03 [#22846] GCC 4.4.1 support in Windows
In this commit i've fixed crash when opening file browser. This crash was caused
by different _stat structures size in storage.c and filelist.c (because of force
setting __MSVCRT_VERSION__ in storage.c), other errors from report
were fixed earlier.

I've used _stati64 strcutrure and functions and tested on official
mingw-gcc 3.4.5, official mingw-gcc 4.4.0, tdm-mingw-gcc 4.4.1,
cross mingw-gcc 4.4.4 and cross mingw-gcc 4.2.1-sjlj -- everything was
ok in  this configurations (except openexr and opencollada libraries which
requires sjlj compiler, so i was unable to build blender with that
libraries by official mingw-gcc 4.4.0)
2010-07-26 10:41:26 +00:00
Janne Karhu
8eb31b6bcb Fix for [#22073] Particle Emit From Volume Button No Different Than Emit From Faces Button 2010-07-26 10:31:51 +00:00
Nathan Letwory
5bac485dd4 Add missing banner for installer. 2010-07-26 10:30:59 +00:00
Campbell Barton
15e94823dd in debug mode report the time to load addon modules. 2010-07-26 09:09:53 +00:00
Campbell Barton
ed5d0bb62f patch from Mitchell Stokes with some changes.
BGE Py Controllers were effectively doing this...
 "a.b.c" --> "__import__('a').b.c()"

This was annoying because it meant module 'a' would need to import 'b' explicitly.

Now use import like this.
 "a.b.c" --> "__import__("a.b").c()"

Note that this has the slight disadvantage that these need to be modules, where as before they could be collections of functions in a class instance for eg. So its possible this breaks existing files but dont think anyone used this since its a fairly obscure use case.
2010-07-26 08:49:16 +00:00
Campbell Barton
e62c0ea835 replace macros VECCOPY and QUATCOPY with inline math functions no functional changes
also replace mul_m4_v3() with mul_v3_m4v3() in a few places.
2010-07-26 06:34:56 +00:00
Campbell Barton
304043ee5f [#22617] Using register/unregister alone crashes blender
wasnt crashing anymore but made exception message clearer.
2010-07-26 05:55:56 +00:00
Campbell Barton
ba3192bf71 bugfix [#22962] Crash when starting the render in the attached file (Kino Bug Reporting Sprint :)
NULL checks on tex->pd are elsewhere in the code so this should be ok.
2010-07-26 05:31:31 +00:00
Jason Wilkins
9941b7d52d * was suggested I combine all the direction modes into a single enumeration by using RNA_def_property_enum_funcs 2010-07-26 05:25:09 +00:00
Campbell Barton
e977f80a8f bugfix [#23018] Can't run 2.53 build
for some reason mbstowcs() was converting '/home/matrem/Téléchargements/' to '/home/matrem/T', where blenders utf8towchar() worked correctly, tried changing my locale but didnt help so using blenders utf8towchar() function.
2010-07-26 04:21:44 +00:00
Nicholas Bishop
ec19c7dffc == Sculpt ==
Fixed brush icons loading slowly

* Changed brush icon property from an enum to a flag that toggles whether a custom file is used for the brush icon
* Changed get_brush_icon to only handle loading external icons, built-ins are handled through the regular icon system
* Modified preview icon drawing to allow built-in icons
* When not using a custom icon, a default icon is selected based on the current tool

TODO:
* Allowing preview to show built-in icons makes the brush texture selector look ugly when nothing is selected. As discussed on IRC though, the nothing-selected state needs to be clarified anyway; I'll address this in another commit
* Use image browser when selecting a custom icon
* Selecting the default icon is ugly (uses the active object's mode), this can be fixed by making brushes know which paint mode they are part of
2010-07-26 04:00:09 +00:00
Jason Wilkins
6561da03ae * Accessing Brush size, alpha, size pressure, alpha pressure, and unprojected radius need to use the appropriate brush_* function. 2010-07-26 03:43:17 +00:00
Nicholas Bishop
5b1231849c * Factored out some duplicated code from rna_brush into paint.c, added a new function that checks whether a brush is used by that paint struct
* Fixed an improperly initialized variable in BKE_previewing_free_id
* Added an RNA access function to get the icon associated with a value
2010-07-26 02:35:43 +00:00
Campbell Barton
a27de17349 [#22918] Animations not being deleted from .blend files
fake user button wasnt available so there was no way to have an action removed for the user.
2010-07-26 02:31:45 +00:00
Campbell Barton
150236448d bugfix [#22994] Crash when loading this file 2010-07-26 02:08:47 +00:00
Campbell Barton
ad99c6644a bugfix [#21388] Auto depth + Z Transparency artifacts 2010-07-26 01:59:50 +00:00
Campbell Barton
e4a7087982 bugfix [#22836] Alt+MMB view alignment don't respect all axes directions
also moved rotation_between_quats_to_quat into BLI_math from python mathutils.
2010-07-26 00:11:14 +00:00
Nicholas Bishop
cc061d075f == Sculpt ==
More icon work

* Added icon defines for all the brushes
* Load all the brush icons after loading regular Blender icons
* Added the brush icons to their respective tool enums in RNA
* Fixed a couple unused-variable warnings
2010-07-25 22:23:40 +00:00
Nicholas Bishop
ba30ac1230 == Sculpt ==
Minor sculpt cleanups

* Moved the (previously extern) declarations of the brush icon data to ED_datafiles.h
* Set sculpt tool RNA to alphabetical order, quite a long list now
2010-07-25 22:05:52 +00:00
Peter Schlaile
98e26b1b08 == Sequencer ==
Some cleanup on effects:

- converted interface to float cfra
- made effects return their own ImBufs, which has the following 
  advantages:
  * code in sequencer.c is a lot more readable.
  * multicam saves one memcpy of an image
  * prepares things for GPU-rendering
2010-07-25 17:19:55 +00:00
Janne Karhu
6ec87e6095 Fix for [#22128] particle sizes and physics
* size wasn't updated at all for particles with keyed or no physics
2010-07-25 14:40:18 +00:00
Janne Karhu
1e7f96343e Fix for [#22167] Hair lattice only works with dynamic hair
* Doing hair effectors, guides & lattices all in one loop didn't work properly
2010-07-25 13:18:15 +00:00
Sergey Sharybin
cc0f3146e7 Shapekeys for curves/surfeces
Fix #21498: Edit curve Shape key /252_r 27318

Added full support of shape keys for curves and nurbs surfaces including
topology changing in edit mode, undo stuff, updating relative keys when
working under basis and so on.
2010-07-25 11:57:36 +00:00
Campbell Barton
61a09d96b1 py api mathutils.Quaternion()
- getting axis, angle wasnt calling read callbacks so it didnt work with RNA.
- made setting axis and angle attributes possible.
2010-07-25 02:56:39 +00:00
Campbell Barton
885bbe6999 from Luca's recent commit noticed there are more typo's: lenght -> length 2010-07-25 01:45:53 +00:00
Campbell Barton
9d97123f90 Remove WM_FAST_DRAW ifdef which I added while Ton was on holiday.
Only drawing the areas which need redrawing work so no reason to revert this.
2010-07-25 01:39:47 +00:00
Peter Schlaile
6a4d370a16 Bugfix: the sequencer core rewrite missed preprocessing of images with
wrong resolution on input, which can create image distortion and crashes 
on render.

Thanks to Juan Pablo Bouza for spotting this one!
2010-07-24 19:42:29 +00:00
Luca Bonavita
0eca3db6c5 - typo: from "lenght" to "length" in rna
fixes [#22997] typo in autocomplete/python api name in bpy.context.active_object.data.draw_edge_lenght not length
  https://projects.blender.org/tracker/index.php?func=detail&aid=22997&group_id=9&atid=498
  no addons are affected by this change

- also found a typo in particles toolbar
2010-07-24 16:35:58 +00:00
Mitchell Stokes
eabbbcdff9 Fixing a crash when using either BL_ArmatureBone.parent and BL_ArmatureBone.children. 2010-07-24 09:26:05 +00:00
Peter Schlaile
1e816635b0 Bugfix: Small change to hash algorithm hinted by James Ruan on mailing list to
make hash distribution a little bit better.
2010-07-24 08:47:14 +00:00
Jason Wilkins
0246caf513 * Fix: the radius of the brush is bigger than the texture square in the UV image editor so it is always drawing a square at stronger intensity. 2010-07-24 07:18:31 +00:00
Jason Wilkins
068b0c3f6f Fix [#22965] Icons for new brushes won't get sticky
Somehow the code I submitted to fix this problem was commented out.  I think I just submitted the wrong code.
2010-07-24 05:53:30 +00:00
Campbell Barton
f24bcc689c bugfix [#22988] Duplicating Lights by Frame Causes Hangup 2010-07-24 02:51:51 +00:00
Matt Ebb
780f4c1c78 Fixed an annoying problem where sometimes tooltips would get left
hanging on screen, making you have to mouse over them to clear them.

I hope this was the only issue causing this, if anyone sees hanging tooltips 
after this commit, please report it!
2010-07-24 02:49:58 +00:00
Campbell Barton
1fdb880cf4 bugfix [#22990] Crash rendering joined curves
- dont render invalid material indicies (like mesh faces)
- clamp the material index values when joining, TODO: merge material lists properly.
2010-07-24 02:27:43 +00:00
Campbell Barton
f148aa696e bugfix [#22769] Undo Looses Active Camera
The problem was that the v3d could have a different camera to the scene even when locked.
VIEW3D_OT_viewnumpad was ignoring v3d->scenelock option and allowing an invalid state.
2010-07-24 01:32:03 +00:00
Campbell Barton
a732678217 [#22873] Snap to increment isn't working that expected when Units set to Metric or Imperial - minor
- pick the closest unit that matches the existing step size.
- set the distance subtype on some camera flags.
- commented mesh flag 'ME_ISDONE' its nolonger used.
2010-07-24 00:24:58 +00:00
Campbell Barton
bd90c33bbf bugfix [#22941] set object center/origin on a linked duplicate causes linked copied to become unselectable in viewport 2010-07-23 23:48:21 +00:00
Campbell Barton
ba76552213 bugfix [#19223] FBX export doesn't do cameras correctly 2010-07-23 20:57:52 +00:00
Campbell Barton
9c3376a030 bugfix [#22716] Game engine corrupts rig ID-Properties. 2010-07-23 19:47:25 +00:00
Guillermo S. Romero
c36fcf5116 SVN maintenance. 2010-07-23 19:43:13 +00:00
Campbell Barton
7275ba728d fix for another case where object editmode data could be lost when switching scenes. 2010-07-23 18:42:15 +00:00
Campbell Barton
318c975dcb bugfix [#22954] Crash going edit mode on an object linked in another scene (Kino Bug Reporting Sprint :) 2010-07-23 18:30:14 +00:00
Campbell Barton
4e62175989 bugfix [#22974] OBJ import arrives without texture 2010-07-23 17:51:39 +00:00
Peter Schlaile
d5346883dc Bugfix: [#21479] Insert Keyframe in some Sequence strip properties does
nothing

This fixes Crop and Transform the same hacky way like Color Balance.

Will do a real fix, if I find a clever way. (Those structures must 
provide a Sequence struct backpointer!!)

Cheers,
Peter
2010-07-23 17:48:16 +00:00
Brecht Van Lommel
72689deb63 Fix #21077: multiple python headers in an area header not working correct,
each needs a unique ui block name.
2010-07-23 17:26:00 +00:00
Peter Schlaile
b3dca80c5b Sequencer UI bugfix: translate / crop also work on effect output, UI was
missing
2010-07-23 17:09:33 +00:00
Peter Schlaile
65fcb0edcf == Sequencer ==
This patch cleans up the sequencer core by replacing the caching system
(TStripElems) with a hash based system, which is:

a) a lot faster
b) a lot more readable
c) a lot more memory conserving

The new caching system is also a good building ground for

a) sub frame precision rendering (even on scene strips)
b) multi core rendering (threaded rendering is still disabled, but can 
   be extended now to arbitrary core numbers)

I tested the code on an extensive editing session today and had no 
crashes during 4 hours of editing. So I consider it very stable.
2010-07-23 16:57:11 +00:00
Brecht Van Lommel
bf5f5bd3bd Fix #20863: when loading a file without UI, with multiple windows open,
the other windows would not preserve the screens correctly, code for
reading 2.4x files was running when it didn't need to.
2010-07-23 16:50:25 +00:00
Janne Karhu
4c4ec56f49 Fix for [#22644] hair particles bug 2, patch by Lukas Toenne 2010-07-23 16:48:45 +00:00