sequencer snap was crashing when no last selected was available (own mistake)
material names spelling was odd - HalveGreen -> HalfGreen
This commit is contained in:
@@ -757,9 +757,9 @@ int material_in_material(Material *parmat, Material *mat)
|
||||
/* ****************** */
|
||||
|
||||
char colname_array[125][20]= {
|
||||
"Black","DarkRed","HalveRed","Red","Red",
|
||||
"Black","DarkRed","HalfRed","Red","Red",
|
||||
"DarkGreen","DarkOlive","Brown","Chocolate","OrangeRed",
|
||||
"HalveGreen","GreenOlive","DryOlive","Goldenrod","DarkOrange",
|
||||
"HalfGreen","GreenOlive","DryOlive","Goldenrod","DarkOrange",
|
||||
"LightGreen","Chartreuse","YellowGreen","Yellow","Gold",
|
||||
"Green","LawnGreen","GreenYellow","LightOlive","Yellow",
|
||||
"DarkBlue","DarkPurple","HotPink","VioletPink","RedPink",
|
||||
@@ -767,7 +767,7 @@ char colname_array[125][20]= {
|
||||
"SeaGreen","PaleGreen","GreenKhaki","LightBrown","LightSalmon",
|
||||
"SpringGreen","PaleGreen","MediumOlive","YellowBrown","LightGold",
|
||||
"LightGreen","LightGreen","LightGreen","GreenYellow","PaleYellow",
|
||||
"HalveBlue","DarkSky","HalveMagenta","VioletRed","DeepPink",
|
||||
"HalfBlue","DarkSky","HalfMagenta","VioletRed","DeepPink",
|
||||
"SteelBlue","SkyBlue","Orchid","LightHotPink","HotPink",
|
||||
"SeaGreen","SlateGray","MediumGrey","Burlywood","LightPink",
|
||||
"SpringGreen","Aquamarine","PaleGreen","Khaki","PaleOrange",
|
||||
|
||||
@@ -2956,13 +2956,13 @@ void transform_seq(int mode, int context)
|
||||
}
|
||||
|
||||
/* check seq's next to the active also - nice for quick snapping */
|
||||
if (snap_dist && seq_tx_check_left(last_seq)) {
|
||||
if (snap_dist && last_seq && seq_tx_check_left(last_seq)) {
|
||||
seq = find_next_prev_sequence(last_seq, 1, 0); /* left */
|
||||
if(seq && !seq_tx_check_right(seq))
|
||||
TESTSNAP(seq_tx_get_final_right(seq));
|
||||
}
|
||||
|
||||
if (snap_dist && seq_tx_check_right(last_seq)) {
|
||||
if (snap_dist && last_seq && seq_tx_check_right(last_seq)) {
|
||||
seq = find_next_prev_sequence(last_seq, 2, 0); /* right */
|
||||
if(seq && !seq_tx_check_left(seq))
|
||||
TESTSNAP(seq_tx_get_final_left(seq));
|
||||
|
||||
Reference in New Issue
Block a user